Note that there are some explanatory texts on larger screens.

plurals
  1. POListView inside a ScrollView issue in Android
    primarykey
    data
    text
    <p>Here is my XML layout. I have a list view inside my scrollview. I am setting the height manually if I change the listview height to wrap_content it is not working. And also if the data grows beyond the limit it is hiding. I am seeing many answers to solve this. What is the best option to solve it for my case? </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:focusableInTouchMode="true" &gt; &lt;LinearLayout android:id="@+id/store_scroller" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="45dp" android:background="#c6c6c6" android:padding="10dp" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" layout_alignParentLeft="true" android:text="Stores" android:textSize="20dp" /&gt; &lt;TextView android:id="@+id/merchant_count_textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="0 Results" /&gt; &lt;/RelativeLayout&gt; &lt;Gallery android:id="@+id/gallery1" android:layout_width="match_parent" android:layout_height="wrap_content" android:drawSelectorOnTop="true" android:gravity="left" android:listSelector="@color/gridviewlistselector" android:paddingLeft="10dp" android:paddingRight="20dp" android:paddingTop="10dp" android:spacing="10dp" /&gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="55dp" android:background="#c6c6c6" android:padding="10dp" &gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" layout_alignParentLeft="true" android:text="Products" android:textSize="20dp" /&gt; &lt;Spinner android:id="@+id/filter_spinner" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="40dp" android:layout_toRightOf="@+id/textView1" /&gt; &lt;TextView android:id="@+id/product_count_textView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:text="0 Results" /&gt; &lt;/RelativeLayout&gt; &lt;ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="4800dp" android:layout_weight="1" android:drawSelectorOnTop="true" android:listSelector="@color/gridviewlistselector" android:orientation="vertical" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
 

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