我需要Sliding Panel在关闭状态下没有完全关闭。
(例如http://i.stack.imgur.com/S2Hj1.png)
怎么做?
xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<com.regulus.client.android.controls.SlidingPaneLayoutTouchOff
android:id="@+id/work_area"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" >
<!-- sliding panel -->
<LinearLayout
android:id="@+id/slide_panel"
android:layout_width="280dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:orientation="vertical" >
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ListView>
</LinearLayout>
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.regulus.client.android.controls.SlidingPaneLayoutTouchOff>
</LinearLayout>
SlidingPaneLayoutTouchOff 自定义类。扩展 SlidingPaneLayout