SlidingDrawerのハンドルであるボタンがあります。SlidingDrawerボタンハンドルと同じ行にアクセスしたい別のボタンがあります。これはLinearLayoutまたはRelativeLayoutでは不可能のようですが、FrameLayoutを介して機能させることができます。
私の問題はこれです:ハンドルボタンは画面の中央にのみ表示されます。各ボタンを画面の反対側に配置します(ボタンのハンドルを右側に、もう一方のボタンを左側に配置します)。このFrameLayoutでラップされたボタンを画面の右側に移動するにはどうすればよいですか?すべてがRelativeLayoutにラップされていますが、このボタンの移動はまだ実現できていません。
関連するAndroidXMLレイアウトコード(もう一度、すべてRelativeLayoutにラップされています):
<Button android:id="@+id/EditListActivityButton"
android:text="@string/mappage_edititems"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toLeftOf="@+id/addItemSlidingDrawerHandle"
android:layout_above="@+id/item">
</Button>
<SlidingDrawer android:id="@+id/addItemSlidingDrawer"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:handle="@+id/addItemSlidingDrawerHandle"
android:content="@+id/addItemSlidingDrawerContent"
android:layout_above="@+id/item"
android:layout_alignParentRight="true">
<FrameLayout android:id="@id/addItemSlidingDrawerHandle"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_toRightOf="@+id/goToEditListButton">
<Button android:id="@+id/addItemSlidingDrawerHandleButton"
android:text="@string/mappage_additem"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Button>
</FrameLayout>
<LinearLayout android:id="@id/addItemSlidingDrawerContent"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:orientation="vertical"
android:background="#96C120">
<!-- sliding drawer content goes here -->
</LinearLayout>
</SlidingDrawer>