私はチャットを実装する必要があるAndroidアプリに取り組んでおり、チャットアプリと同じように実際のチャットのMaster-Detailフローを使用しています.AndroidSlidingPaneLayoutを使用しています。
私が抱えている問題は、Google ハングアウト アプリのように表示され、右側のペインがわずかに露出していることです。これは望ましくありません。左側のペインが画面幅全体をカバーするようにしたいのです。私はさまざまなことを試しましたが、これまでのところ助けにはなりません。
<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/content_viewspl"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="@dimen/conversations_overview_width"
android:layout_height="match_parent"
android:background="@color/grey"
android:orientation="vertical" >
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:divider="@color/black12"
android:dividerHeight="1dp" />
</LinearLayout>
<LinearLayout
android:id="@+id/selected"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" >
</LinearLayout>
二日酔いが右の写真で赤くマークされたくないので、左ペインは全幅に広がる必要があります