tags:

views:

7

answers:

0

I created a sliding drawer in XML but when I run the app in the emulator and open the drawer, only the first button widget is visible in the drawer. The drawer does open all the way but only displays the first widget.

Can anyone explain why this happens and a solution?

(the code)

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

<ListView 
    android:layout_height="wrap_content" 
    android:layout_below="@id/favs_container" 
    android:layout_width="fill_parent" 
    android:id="@+id/FavsList">
</ListView>

<SlidingDrawer 
    android:id="@+id/drawer" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:handle="@+id/handle" 
    android:content="@+id/content">
    <TextView 
        android:id="@id/handle" 
        android:text="HANDLE" 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:padding="10dip" 
        android:textColor="#FFFFFF" 
        android:background="#FFCA00"></TextView>
    <LinearLayout 
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:id="@id/content" 
        android:padding="10dip" 
        android:background="#00383F">
        <Button 
            android:text="Test1" 
            android:id="@+id/Button01" 
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content" /> 
        <Button 
            android:text="Test2" 
            android:id="@+id/Button02" 
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content" /> 
        <Button 
            android:text="Test3" 
            android:id="@+id/Button03" 
            android:layout_width="fill_parent" 
            android:layout_height="wrap_content" /> 
    </LinearLayout>
</SlidingDrawer>