Note that there are some explanatory texts on larger screens.

plurals
  1. POhorizontal scrollview not working
    primarykey
    data
    text
    <p>I have a grid view in my application and i need to scroll it horizontally.Can you tell me how to do it. i did like this <code>android:scrollbarAlwaysDrawHorizontalTrack="true"</code> but it is not working.</p> <p>Thanks </p> <pre><code>&lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#E6EBF3" &gt; &lt;Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Food" /&gt; &lt;Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Beverages" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#E6EBF3" &gt; &lt;LinearLayout android:id="@+id/linearLayoutHeader" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" &gt; &lt;/LinearLayout&gt; &lt;EditText android:id="@+id/editText1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="right" android:gravity="right|center_horizontal" android:hint="search your favorite" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="match_parent" android:background="#A1A7B0" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_weight="1" android:background="#A1A7B0" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/popular" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right|center_horizontal" android:paddingRight="10dp" android:text="Popular" /&gt; &lt;TextView android:id="@+id/popular" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="right|center_horizontal" android:text="New" /&gt; &lt;/LinearLayout&gt; &lt;GridView android:id="@+id/gridView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:numColumns="auto_fit" android:scrollbarAlwaysDrawHorizontalTrack="true" &gt; &lt;/GridView&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="200dp" android:layout_height="match_parent" android:background="#CED1CF" &gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p></p>
    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.
 

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