도구 모음이 정상을 만드는 방법도구 모음
을 이동 위로 이동?
투명 툴바 만드는 법? 난 당신이 android:fitsSystemWindows="true"
을 설정하기 때문입니다
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_activity_DrawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:background="?attr/colorPrimary" />
<su.gamepoint.opendomofon.pro.sliding.SlidingTabLayout
android:id="@+id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="2dp"
android:background="@color/ColorPrimary" />
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:layout_weight="1">
</android.support.v4.view.ViewPager>
</LinearLayout>
</android.support.v4.widget.DrawerLayout>
하면 전체 화면 테마를 사용할 수 있습니다 : 당신의
onCreate()
에서 다음아래와 같은 방법을 만듭니다. –
@ 서랍을 사용하는 경우 왜 레이아웃에 'DrawerLayout'이 정의되어 있습니까? – mikepenz