Hello all

I am trying to set an activity with a ListView and under the ListView, a
button, but when the listview grows, the button disappear (goes down and
doesnt appear).

this is the xml:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout

  xmlns:android="http://schemas.android.com/apk/res/android";

  android:layout_width="fill_parent"

  android:layout_height="fill_parent"

  android:paddingBottom="30dip">



  <LinearLayout

    android:id="@+id/drinktypelist_linearlayout"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content">



  <ListView

    android:id="@+id/drinktypelist"

    android:layout_width="fill_parent"

    android:layout_height="fill_parent" />



  </LinearLayout>



  <Button

        android:id="@+id/add_drink_type"

        android:layout_height="wrap_content"

        android:layout_width="fill_parent"

        android:layout_below="@id/drinktypelist_linearlayout"

android:layout_centerHorizontal="true"

        android:gravity="center"

        android:text="Add drink type"

        android:minWidth="100sp" />



</RelativeLayout>


I have tried also several combinations with ListView, button, LinearLayout,
RelativeLayout but I dont have a clue about how to make the button permanent
in the view. What I need is that when the listview grows the button stays at
the botton of the screen and the ListView get less space to show itself.

Any idea? thanks in advance :)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to