|
|
@@ -0,0 +1,123 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent">
|
|
|
+
|
|
|
+ <com.google.android.material.appbar.AppBarLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content">
|
|
|
+ <!--android:theme="@style/AppTheme.AppBarOverlay"-->
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="?actionBarSize"
|
|
|
+ android:paddingStart="@dimen/margin_default"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ app:layout_scrollFlags="scroll|enterAlways|snap">
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="@dimen/size_icon_big"
|
|
|
+ android:layout_height="@dimen/size_icon_big"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:scaleType="fitXY"
|
|
|
+ android:src="@mipmap/logo_gray"
|
|
|
+ android:tint="@color/black_theme" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/title"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="拾贝"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:textColor="@color/black_theme"
|
|
|
+ android:textSize="@dimen/size_title"
|
|
|
+ android:layout_marginLeft="@dimen/margin_s"/>
|
|
|
+
|
|
|
+ <Space
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_search_top"
|
|
|
+ android:layout_width="@dimen/height_edit_text"
|
|
|
+ android:layout_height="@dimen/height_sliding_tab"
|
|
|
+ android:background="?attr/selectableItemBackgroundBorderless">
|
|
|
+ <!--无边界波纹-->
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_centerVertical="true"
|
|
|
+ android:src="@drawable/ic_search"
|
|
|
+ android:tint="@color/black_theme" />
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_more"
|
|
|
+ android:layout_width="@dimen/height_edit_text"
|
|
|
+ android:layout_height="@dimen/height_sliding_tab"
|
|
|
+ android:background="?attr/selectableItemBackgroundBorderless">
|
|
|
+ <!--无边界波纹-->
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_more_vert"
|
|
|
+ android:tint="@color/black_theme"
|
|
|
+ android:layout_centerInParent="true"/>
|
|
|
+ </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:background="@color/colorPrimary">
|
|
|
+
|
|
|
+ <com.flyco.tablayout.SlidingTabLayout
|
|
|
+ android:id="@+id/stl_home"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="@dimen/height_sliding_tab"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ app:tl_iconVisible="false"
|
|
|
+ app:tl_indicator_bounce_enable="false"
|
|
|
+ app:tl_indicator_color="@color/black"
|
|
|
+ app:tl_indicator_height="3dp"
|
|
|
+ app:tl_indicator_width="10dp"
|
|
|
+ app:tl_tab_width="44dp"
|
|
|
+ app:tl_textBold="NONE"
|
|
|
+ app:tl_textSelectColor="@color/black"
|
|
|
+ app:tl_textUnselectColor="@color/colorTextSecondary"
|
|
|
+ app:tl_textsize="@dimen/text_normal"
|
|
|
+ app:tl_indicator_margin_bottom="@dimen/margin_s"
|
|
|
+ android:layout_marginStart="@dimen/margin_s"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"/>
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:id="@+id/rl_search"
|
|
|
+ android:layout_width="@dimen/height_edit_text"
|
|
|
+ android:layout_height="@dimen/height_sliding_tab"
|
|
|
+ android:background="?attr/selectableItemBackgroundBorderless">
|
|
|
+ <!--无边界波纹-->
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:src="@drawable/ic_search"
|
|
|
+ android:tint="@color/black_theme"
|
|
|
+ android:layout_centerInParent="true"/>
|
|
|
+ </RelativeLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </com.google.android.material.appbar.AppBarLayout>
|
|
|
+
|
|
|
+ <androidx.viewpager.widget.ViewPager
|
|
|
+ android:id="@+id/vp_main"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
+</androidx.coordinatorlayout.widget.CoordinatorLayout>
|