をSlidingDrawer
透明にするには、そのandroid:background
属性をに設定します@null
。次の例を参照してください。
<SlidingDrawer android:id="@+id/slider"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:handle="@+id/handle" android:content="@+id/content"
android:background="@null">
...
...
</SlidingDrawer>
アップデート:
上記のコードは、引き出し全体を透明にします。コンテンツ部分のみを透明にするには、次のようにすることができます。
<SlidingDrawer android:id="@+id/slider"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:handle="@+id/handle" android:content="@+id/content"
android:background="#eeffae" >
<ImageView android:id="@+id/handle" android:layout_width="55dp"
android:layout_height="55dp" android:src="@drawable/handle" />
<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/content"
android:orientation="vertical" android:background="@null">
...
...
</LinearLayout>
</SlidingDrawer>