0
我正在使用滑動抽屜,並且能夠在我的應用程序的所有活動中顯示滑動抽屜。滑動抽屜打開時不活動的背景
我面臨的問題是,我仍然能夠點擊背景(活動中的視圖)。有沒有辦法可以在滑動抽屜打開時禁用背景。
問候
EDIT 1
<?xml version="1.0" encoding="utf-8"?>
<SlidingDrawer xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:content="@+id/content"
android:handle="@+id/handle" >
<Button
android:id="@+id/handle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Handle" />
<LinearLayout
android:id="@+id/content"
style="@style/roundrectbox_white_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/slider_round_rect_border"
android:orientation="vertical"
android:padding="15dp" >
<ListView
android:id="@+id/listView1"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:cacheColorHint="@android:color/transparent"
android:divider="@android:color/transparent"
android:listSelector="@android:color/transparent" />
</LinearLayout>
</SlidingDrawer>
您作爲滑動抽屜的內容添加了什麼? – AkashG 2012-07-26 09:51:52
它是一個listview。 – Deva 2012-07-26 09:53:51
當你拖動滑動抽屜時,你能看到列表視圖嗎? – AkashG 2012-07-26 09:54:39