Note that there are some explanatory texts on larger screens.

plurals
  1. POScrollbar + LinearLayout + GridView .. GridView not scrolling
    text
    copied!<p>My Current Layout is</p> <p><img src="https://i.stack.imgur.com/ux96S.png" alt="enter image description here"> </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;ScrollView android:id="@+id/scrMain" android:layout_width="fill_parent" android:layout_height="match_parent" android:layout_gravity="top" android:fillViewport="true" &gt; &lt;RelativeLayout android:id="@+id/rl" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;RelativeLayout android:id="@+id/llGridToday" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:visibility="gone"&gt; &lt;FrameLayout android:id="@+id/FrameLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" &gt; &lt;ImageView android:id="@+id/imageView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/gridframe" /&gt; &lt;FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:background="@drawable/calender" &gt; &lt;TextView android:id="@+id/txtDateToday" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" android:text="28" /&gt; &lt;/FrameLayout&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="3dp" android:text="Today" android:textColor="#000" /&gt; &lt;/FrameLayout&gt; &lt;GridView android:id="@+id/gridToday" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_below="@+id/FrameLayout1" android:layout_weight="1" android:numColumns="3" &gt; &lt;/GridView&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:id="@+id/llGridTomorrow" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/llGridToday" android:orientation="vertical" android:visibility="gone"&gt; &lt;FrameLayout android:id="@+id/FrameLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" &gt; &lt;ImageView android:id="@+id/ImageView01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/gridframe" /&gt; &lt;FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:layout_marginRight="10dp" android:layout_marginTop="10dp" android:background="@drawable/calender" &gt; &lt;TextView android:id="@+id/txtDateTomorrow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" android:text="28" /&gt; &lt;/FrameLayout&gt; &lt;TextView android:id="@+id/TextView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginTop="3dp" android:text="Tomorrow" android:textColor="#000" /&gt; &lt;/FrameLayout&gt; &lt;GridView android:id="@+id/gridTomorrow" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_below="@+id/FrameLayout1" android:layout_weight="1" android:numColumns="3" &gt; &lt;/GridView&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:id="@+id/llGridMonth" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/llGridTomorrow" android:orientation="vertical" android:visibility="gone"&gt; &lt;FrameLayout android:id="@+id/FrameLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" &gt; &lt;ImageView android:id="@+id/ImageView02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/gridframe" /&gt; &lt;TextView android:id="@+id/TextView03" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_marginTop="2dp" android:text="This Month" android:textColor="#000" /&gt; &lt;/FrameLayout&gt; &lt;GridView android:id="@+id/gridMonth" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/FrameLayout1" android:numColumns="3" android:stretchMode="columnWidth"&gt; &lt;/GridView&gt; &lt;/RelativeLayout&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p></p> <p>This <code>Layout</code> contains three <code>GridViews</code>. I am making Parent <code>RelativeLayout</code>s of <code>GridViews</code> visible with logic and adding inflated <code>ImageView</code> + <code>TextView</code> to <code>GridView</code>.</p> <p>Its looking fine. but no scrolling is there.</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