3

閉状態でスライドパネルが完全に閉まっていない必要があります。

(例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 を拡張します

4

1 に答える 1