左側のペインにフラグメントを含む SlidingPaneLayout があります。
<android.support.v4.widget.SlidingPaneLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity$DummySectionFragment"
>
<fragment
android:name="com.bolldorf.cnpmoebel.widgets.PlaceChooserFragment"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/fragment_place_chooser"
tools:layout="@layout/fragment_place_chooser"
android:layout_weight="0.3" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1">
< ... more stuff here ... >
</RelativeLayout>
</android.support.v4.widget.SlidingPaneLayout>
フラグメントはそれほど広くはありませんが、動的にロードされたスピナーで構成されているため、幅が少し変わる可能性があります。
完全なフラグメントが表示されたら、SlidingPaneLayout が開かないようにするにはどうすればよいですか?
明確化: パネルが引き出される前に、右側 (または xml の下部) ペイン全体が表示され、左側のペインは非表示になっています。
スライド後、右に移動すると右側のペインの約 10% が表示され、左側のペインの 90% が表示されます。
私が望むのは、左側のペインの 30% と右側のペインの 60% を表示することです。つまり、スライドの動きを早く止めてほしいです。