SlidingDrawer句柄不可见

时间:2012-03-20 10:38:04

标签: android android-layout slidingdrawer

我不明白为什么在这样的布局黑框中没有填充textview和slidedrawer handle元素之间的区域。

如果我交换嵌入的linearlayout和slidedrawer,我看不到句柄元素。

请帮我解决这个问题。

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@android:color/white"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/event_tv_title"
        style="@style/EventTitle"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" />

   <SlidingDrawer
        android:id="@+id/event_sd"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:content="@+id/content"
        android:handle="@+id/handle"
        android:orientation="vertical"
        android:background="#00000000" >

       <TextView
           android:id="@+id/handle"
           style="@style/TheatreRow"
           android:text="@string/schedule"/>

       <TextView
           android:id="@+id/content"
           android:layout_width="fill_parent"
           android:layout_height="wrap_content"
           android:text="text" />
    </SlidingDrawer>


    <LinearLayout 
       android:layout_width="fill_parent"
       android:layout_height="match_parent"
       android:background="@android:color/black">
    </LinearLayout>

</LinearLayout>

1 个答案:

答案 0 :(得分:0)

请参阅此示例:This One.

相关问题