화면 오른쪽 상단의 세로 LinearLayout
에 3 Button
의 주보기가 있습니다. 각 버튼은 DrawerLayout
안에 호스팅되는 Fragment
을 표시합니다. 이처럼 : 이동 방법 DrawerLayout의 내용과 함께 동일한 내용을 볼 수 있습니다. Z
내가 어떤 버튼을 클릭
, 나는 DrawerLayout이 (가) 오른쪽에서 표시하고이 버튼이 함께 번역하고 싶습니다. 이처럼 :나는 서랍과 Button
이동 관리해야하지만 내 문제는 서랍의 그림자뿐만 아니라 버튼에 영향을 미친다는 것이다. 서랍의 내용 (똑같은 높이)만큼 밝기를 원하지만 다른 버튼도 서랍 뒤에 남기를 원합니다.
이 내 activity_main.xml 파일입니다 DrawerLayout
내부의 버튼, 그 위의 서랍 이동하지만 어두워 번역되고있는 하나
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
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"
android:fitsSystemWindows="true">
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/content_main"/>
<LinearLayout ... >
<ImageButton ... />
<ImageButton ... />
<ImageButton ... />
</LinearLayout>
<FrameLayout
android:id="@+id/fragment_secondary_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="right"
tools:context="..."/>
</android.support.v4.widget.DrawerLayout>
</android.support.design.widget.CoordinatorLayout>
합니다.
반면에 DrawerLayout 외부에 단추를 배치하면 이동하는 단추는 괜찮아 보이지만 서랍은 다른 단추 아래에 있습니다. 마찬가지로 :
특정 뷰에 영향을 DrawerLayout의 그림자를 피할 수있는 방법이 있나요? 아니면 그것을 취소 하시겠습니까?