DrawerLayout+CoordinatorLayout

"1.0" encoding="utf-8"?>
.support.v4.widget.DrawerLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/dl_left"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    .support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        .support.design.widget.AppBarLayout
            android:id="@+id/home_appbarr"
            android:layout_width="match_parent"
            android:layout_height="100dp">
            .support.design.widget.CollapsingToolbarLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                app:contentScrim="#2cbaa2"
                app:layout_scrollFlags="scroll"
                >
                "@+id/backdrop"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:background="#2cbaa2"
                    app:layout_collapseMode="parallax">
                
                .support.v7.widget.Toolbar
                    android:id="@+id/toolbar"
                    android:layout_width="match_parent"
                    android:layout_height="?attr/actionBarSize"
                    android:theme="@style/toolbar_theme"
                    app:layout_collapseMode="pin" >
                    "@+id/toolbar_text"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:textSize="18sp"
                        android:textColor="#ffffff"
                        />
                .support.v7.widget.Toolbar>
            .support.design.widget.CollapsingToolbarLayout>
            .support.design.widget.TabLayout
                android:id="@+id/tabLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="#2cbaa2"
                app:tabIndicatorColor="#ffffff"
                >.support.design.widget.TabLayout>
            .support.design.widget.TabLayout
                android:id="@+id/tabLayouthide"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="#ffffff"
                android:visibility="gone"
                app:tabIndicatorColor="#2cbaa2"
                >.support.design.widget.TabLayout>
        .support.design.widget.AppBarLayout>

        .support.v4.widget.NestedScrollView
            android:id="@+id/nsv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fillViewport="true"
            android:scrollbars="none"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">
            "@layout/float_button_and_view">
        .support.v4.widget.NestedScrollView>
    .support.design.widget.CoordinatorLayout>
    .support.design.widget.NavigationView
        android:id="@+id/nav_view"
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="start"
        android:fitsSystemWindows="true"
        app:headerLayout="@layout/nav_header_main"
        app:menu="@menu/activity_main_drawer"
      />
.support.v4.widget.DrawerLayout>

DrawerLayout+CoordinatorLayout_第1张图片

你可能感兴趣的:(android开发)