From 8781baec4139154d35bd424de27667715188b6cb Mon Sep 17 00:00:00 2001
From: endian11 <Dana_Lee1016@126.com>
Date: 星期四, 21 三月 2019 17:03:53 +0800
Subject: [PATCH] 完成系统配置
---
app/src/main/res/layout/layout_base_set.xml | 39 ++++++++++++++++++++++-----------------
1 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/app/src/main/res/layout/layout_base_set.xml b/app/src/main/res/layout/layout_base_set.xml
index 050cd99..b1e67fb 100644
--- a/app/src/main/res/layout/layout_base_set.xml
+++ b/app/src/main/res/layout/layout_base_set.xml
@@ -3,25 +3,30 @@
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
-<android.support.design.widget.TabLayout
- android:layout_width="match_parent"
- android:layout_height="45dp"
-android:background="@color/colorAccent"
- android:id="@+id/tab_base_set">
- <android.support.design.widget.TabItem
- android:layout_width="wrap_content"
+ <android.support.design.widget.AppBarLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:text="鍩虹鏁版嵁" />
+ android:theme="@style/AppTheme.AppBarOverlay">
- <android.support.design.widget.TabItem
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="FTP閰嶇疆" />
- <android.support.design.widget.TabItem
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="椹炬牎淇℃伅" />
-</android.support.design.widget.TabLayout>
+ <android.support.v7.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="?attr/colorPrimary"
+ android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
+ app:popupTheme="@style/AppTheme.NoActionBar.PopupOverlay"
+ app:titleTextAppearance="@style/Toolbar_TextAppearance_White"/>
+ <android.support.design.widget.TabLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/tab_base_set"
+
+ android:background="@color/profile_bg"
+ android:layout_below="@+id/toolbar_set">
+ </android.support.design.widget.TabLayout>
+ </android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
android:layout_width="match_parent"
android:layout_height="match_parent"
--
Gitblit v1.8.0