1
제목은 거의 모든 것을 말합니다. 태블릿 및 가로 모드에서 ActionDrawer는 열린 상태로 유지되며 아래 그림과 같습니다.내 ActionDrawer가 내 콘텐츠 뒤에 표시되는 이유는 무엇입니까?
다음<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/content_frame"
android:layout_marginLeft="@dimen/drawer_content_margin"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.mobile.library.custom.ActionDrawerListView
android:id="@+id/left_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="wrap_content"
android:background="@color/tableBackground"
android:layout_gravity="start"/>
</android.support.v4.widget.DrawerLayout>
내가 ActionDrawer 에서 일부 이미지를 원처럼 보이는 것입니다 : 여기
은 일반 레이아웃 여기 레이아웃 sw720dp-땅<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
<android.support.v4.widget.DrawerLayout android:id="@+id/drawer_layout"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent">
<com.mobile.library.custom.ActionDrawerListView
android:id="@+id/left_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="fill_parent"
android:background="@color/tableBackground"
android:layout_gravity="start" />
</android.support.v4.widget.DrawerLayout>
<FrameLayout android:id="@+id/content_frame" android:layout_width="match_parent" android:layout_height="match_parent"
android:layout_marginLeft="@dimen/drawer_content_margin" />
</FrameLayout>
에 대한 XML입니다
서랍 레이아웃이 resorce 파일의 마지막이어야한다 –
** "... 가로 모드에서 ActionDrawer가 열려 머물 생각입니다 ..."** : 그냥 영구적으로 고정 ... 명확히하고 사용자가 할 수있는합니다 ' 어쨌든 닫으시겠습니까? 만약 당신이 잘못된 접근법을 사용하고 있으며 마스터 - 디테일 랜드 스케이프 레이아웃 (content_frame이'Fragment' 또는'Fragments'과 함께 사용된다고 가정 할 때)을보아야합니다. – Squonk
@ 스퀘크는 의미가 있습니다. 나는 다음 스프린트에 대해 살펴볼 것입니다. – arinte