Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid listview shows elements at the bottom when there is few elements?
    primarykey
    data
    text
    <p>When the size of elements is few,like 1,2 or 3 in a Listview It shows elements at the bottom.How can I make it to show elements at the top even there are few? Here's a <a href="http://i.stack.imgur.com/lavgf.png" rel="nofollow">screenshot</a>.</p> <p>Here's my xml code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"&gt; &lt;LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:padding="4px" android:paddingBottom="4px" android:background="@drawable/fbbar" android:layout_height="50dip"&gt; &lt;EditText android:id="@+id/searchText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="bottom" android:hint="type to search..." android:drawableRight="@drawable/ic_search_text"/&gt; &lt;Button android:id="@+id/btn_contacts_refresh" android:layout_width="0px" android:layout_height="0px" android:drawableTop="@drawable/refresh"/&gt; &lt;/LinearLayout&gt; &lt;ListView android:id="@+id/contactsList" android:layout_width="match_parent" android:layout_height="fill_parent" android:transcriptMode="alwaysScroll" android:background="#fff" android:cacheColorHint="#00000000" android:dividerHeight="1px" android:divider="#777a"/&gt; &lt;LinearLayout android:layout_height="2dip" android:layout_width="match_parent" android:orientation="horizontal" android:background="@drawable/fbbar"&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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