これは私のxmlファイルです:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:facebook="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFF">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center">
.................................
.................................
<SlidingDrawer
android:layout_width="fill_parent"
android:id="@+id/SlidingDrawer"
android:handle="@+id/slideButton"
android:content="@+id/contentLayout"
android:padding="10dp"
android:layout_height="150dp">
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/slideButton"
android:background="@drawable/action_eating">
</Button>
<LinearLayout
android:layout_width="fill_parent"
android:id="@+id/contentLayout"
android:orientation="vertical"
android:gravity="center"
android:padding="10dp"
android:background="#45454F"
android:layout_height="wrap_content">
<Button
android:id="@+id/history"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/history"
android:textColor="#000000"
android:textSize="20sp" />
</LinearLayout>
</SlidingDrawer>
</LinearLayout>
</ScrollView>
問題は、SlidingDrawerがレイアウトの下部に残っていることです(これで問題ありません)が、下部に留まりすぎています(レイアウトの下に150dpのままだと思います)。クリックすると開きますが、レイアウト上でロールオーバーせず、レイアウトに表示したすべてのコンテンツの下に残ります。しかし、私はそれをクリックするときに、それを私のビューの上にスライドさせる必要があります。そしてそれが閉じたとき、それは私のレイアウトのすぐ下にとどまり、私のレイアウトからそれほど遠くないはずです(150dpのように)。
私の悪い英語でごめんなさい。私が言ったことを理解するのに何か問題があれば、私に知らせてください。ありがとうございました。