私はこの問題を 2 日間抱えていますが、解決策が見つかりません。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ListView
android:id="@+id/presentation_list"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
<SlidingDrawer
android:id="@+id/slidingDrawer1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/presentation_list"
android:content="@+id/content"
android:handle="@+id/handle"
android:orientation="horizontal" >
<Button
android:id="@+id/handle"
android:layout_width="40dp"
android:layout_height="fill_parent"
android:background="@android:color/darker_gray" />
<LinearLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/content_imageview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black" />
</LinearLayout>
</SlidingDrawer>
私はこの非常に単純なレイアウトを持ってlistview
おり、slidingdrawer
と を乗り越えたいと思っていlistview
ます。情報なしで開くactivity
と、例外なく完璧に表示されます。
しかし、 my にアイテムがある場合listview
、 myslidingdrawer
はその種の例外を与えます。
AndroidRuntime(4722): java.lang.RuntimeException: SlidingDrawer cannot have UNSPECIFIED dimensions
私はこれを解決策として何度も検索しましたが、どれもうまくいきません。
私にとって素晴らしいブレークスルーを持っている人はいますか?とても感謝しています!