Note that there are some explanatory texts on larger screens.

plurals
  1. POListView and GridView inside ScrollView. ScrollView won't scrolling
    primarykey
    data
    text
    <p>First of all i want to apollogize for my english, i am from Russia and i hope that google translater helps me to describe my problem=). So problem is - i have a gridView and ExpandableListView inside ScrollView, i know that i shouldn't put a something scrollable View inside ScrollView, but for my goal i cant find alternative. In my project i have a business catalog with categories(like "Electronics","Home&amp;Garden","Motors" etc), and all i want to do is to put most popular categories into gridView (and add icons to them) and make scrollview to scroll it like single layout. But my scrollView won't scroll it, how i can do that?</p> <p>my bizCatalog Actvivty:</p> <p><img src="https://i.stack.imgur.com/f7VH5.png" alt="enter image description here"></p> <p>my bizCatalog layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ViewSwitcher xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/bizSwitcher" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical" &gt; &lt;ProgressBar style="?android:attr/progressBarStyleLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" /&gt; &lt;TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Загрузка списка..." /&gt; &lt;/LinearLayout&gt; &lt;ScrollView android:id="@+id/bizScrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;GridView android:id="@+id/bizFavoritesGrid" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:columnWidth="90dp" android:gravity="center" android:horizontalSpacing="10dp" android:numColumns="auto_fit" android:paddingTop="10dp" android:stretchMode="columnWidth" android:verticalSpacing="10dp" &gt; &lt;/GridView&gt; &lt;ExpandableListView android:id="@+id/bizList" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1" android:cacheColorHint="#00000000" &gt; &lt;/ExpandableListView&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;/ViewSwitcher&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.
 

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