Note that there are some explanatory texts on larger screens.

plurals
  1. POTextView is not scrolling vertically unless there's a link in it
    text
    copied!<p>I've enabled vertical scrolling in my TextView that's inside a ScrollView (for the purposes of leaving other content on top when scrolling horizontally) - however vertical scrolling only works when there's a link in TextView's data. If there's no url/email/etc, then vertical scrolling does not work.</p> <p>When it does work, the vertical scrollbar also reports the wrong scroll position - having scrolled 100% in the view, it'll go to max 5% of the screen.</p> <p>Here's the problematic xml layout in question that gives this odd behavior, and <strong>newsreader_message</strong> is the one I'd like to be able to scroll properly:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/LinearLayout1" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/newsreader_subjectdate" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="1" android:scrollHorizontally="true" android:text="" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;TextView android:id="@+id/newsreader_fromto" android:layout_width="match_parent" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="1" android:scrollHorizontally="true" android:text="" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; &lt;ScrollView android:id="@+id/scrollView1" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;TextView android:id="@+id/newsreader_message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:autoLink="web|email" android:contentDescription="News post content" android:keepScreenOn="true" android:paddingRight="10dp" android:paddingTop="6dp" android:scrollHorizontally="true" android:scrollbars="horizontal|vertical" android:text="" android:textSize="11.5sp" android:typeface="monospace" /&gt; &lt;/ScrollView&gt; </code></pre> <p></p> <p>As an additional detail, the marquees don't scroll either when vertical scrolling is broken (and marquees need to scroll).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload