0

SlidingPaneLayout で動作するこの XML ビューがあります

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="@dimen/overview_width"
    android:layout_height="match_parent"
    android:background="@color/grey50"
    android:orientation="vertical" >

    <de.timroes.android.listview.EnhancedListView
        android:id="@+id/list"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:background="@color/grey50"
        android:divider="@color/black12"
        android:dividerHeight="1dp" />
</LinearLayout>

<LinearLayout
    android:id="@+id/selected_option"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:layout_weight="1"
    android:orientation="vertical" >
</LinearLayout>

次のようになります。

ここに画像の説明を入力

しかし、私が望むのは、右側にあるこのペインを「隠す」ことです。しかし、私は例を検索し、次のような人を見つけました: http://www.survivingwithandroid.com/2013/10/android-slidingpanelayout-tutorial-2.html

しかし、私はそれを消すことはできません。どうすれば達成できますか?

4

0 に答える 0