我在我的應用程序中使用SlidingPaneLayout。
在橫向方向上,我希望SlidingPaneLayout的左右窗格完全吻合,並且不需要滑動即可查看它們。
我的佈局:橫向SlidingPaneLayout不滑動
<android.support.v4.widget.SlidingPaneLayout
android:id="@+id/sliding_pane_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/header" >
<ListView
android:id="@+id/left_drawer"
android:layout_width="220dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@color/tab_normal_bg"
android:choiceMode="singleChoice"
android:divider="@drawable/tab_divider"
android:dividerHeight="1dp" />
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="1000dp"
android:layout_height="match_parent"
android:layout_weight="1" />
</android.support.v4.widget.SlidingPaneLayout>
任何幫助將非常感激。
謝謝!
這不起作用。我已經試過了。 –