Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to enable scrolling?
    primarykey
    data
    text
    <p>I have the following layout. When changing the textviews via code, they expand and what was below is now cut off. This is intended. But I cannot scroll, moving my finger from bottom to top does not change the view even though "scrollbarAlwaysDrawVerticalTrack="true"" is enabled. How to enable scrolling?</p> <p>EDIT: Working solution:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:p1="http://schemas.android.com/apk/res/android" p1:minWidth="25px" p1:minHeight="25px" p1:layout_width="fill_parent" p1:layout_height="fill_parent" p1:id="@+id/scrollView1"&gt; &lt;LinearLayout p1:orientation="vertical" p1:minWidth="25px" p1:minHeight="25px" p1:layout_width="fill_parent" p1:layout_height="fill_parent" p1:id="@+id/linearLayout1" p1:background="#005C2E" p1:scrollbarAlwaysDrawVerticalTrack="true" p1:scrollbars="vertical" p1:scrollbarStyle="insideOverlay"&gt; &lt;TextView p1:text="Text" p1:layout_width="fill_parent" p1:layout_height="wrap_content" p1:id="@+id/textView1" p1:textSize="22sp" p1:textColor="#00005C" /&gt; &lt;TextView p1:text="Text" p1:layout_width="fill_parent" p1:layout_height="wrap_content" p1:textSize="22sp" p1:textColor="#5C0000" p1:id="@+id/textView2" /&gt; &lt;TextView p1:textSize="22sp" p1:text="Text" p1:layout_width="fill_parent" p1:layout_height="wrap_content" p1:textColor="#00005C" p1:id="@+id/textView3" /&gt; &lt;TextView p1:textSize="22sp" p1:text="Text" p1:layout_width="fill_parent" p1:textColor="#5C0000" p1:layout_height="wrap_content" p1:id="@+id/textView4" /&gt; &lt;TextView p1:textSize="22sp" p1:text="Text" p1:layout_width="fill_parent" p1:layout_height="wrap_content" p1:textColor="#00005C" p1:id="@+id/textView5" /&gt; &lt;TextView p1:textSize="22sp" p1:text="Text" p1:textColor="#5C0000" p1:layout_width="fill_parent" p1:layout_height="wrap_content" p1:id="@+id/textView6" /&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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