Ручка SlidingDrawer не видна - PullRequest
1 голос
/ 20 марта 2012

Я не понимаю, почему в таком макете черный ящик не заполняет зону между textview и элементом управления slidedrawer.

Если я поменяю местами встроенный linearlayout и slidedrawer, я не вижу элемента handle.

Пожалуйста, помогите мне с этой проблемой.

<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 голосов
/ 20 марта 2012

См. Этот пример: Этот.

...