how to make the position of button fixed in android? -


i have button , expand list above button , when list expanded button below disappears . how make button in fixed location?

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"         android:orientation="vertical" android:layout_width="fill_parent"         android:layout_height="fill_parent"> <include layout="@layout/ads_bar" ></include>         <textview                  android:text="level 1:"                 android:textsize="20dp"                 android:id="@+id/textview01"                  android:layout_width="fill_parent"                 android:layout_height="wrap_content"></textview>  <textview                  android:text="lorem ispum level ..... :)"                 android:textsize="16dp"                 android:id="@+id/textview01"                  android:layout_width="fill_parent"                 android:layout_height="wrap_content"></textview>  <expandablelistview                  android:id="@+id/listview"                 android:scrollbars="vertical"                 android:layout_width="fill_parent"                  android:layout_height="wrap_content"></expandablelistview>  <include                  android:layout_alignparentbottom="true"                 layout="@layout/quick_links_bar"></include> </linearlayout> 

where quick_links_bar represents button !

sounds want quick_links_bar layout stay @ bottom? you'll need use relativelayout that.

wrap whole layout in relativelayout , move quick links bar layout outside of linearlayout , set property android:layout_alignparentbottom="true" on it. next bit, you'll need assign id quick links bar. on linearlayout, set property android:layout_above="@id/quicklinksbarid". make sure quick links bar include statement above linearlayout.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -