|
@@ -0,0 +1,102 @@
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
+<layout 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">
|
|
|
|
|
+
|
|
|
|
|
+ <RelativeLayout
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@mipmap/bg_main"
|
|
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
+
|
|
|
|
|
+ <FrameLayout
|
|
|
|
|
+ android:id="@+id/header_layout"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="@dimen/header_height"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/header_padding">
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:layout_width="@dimen/header_logo_width"
|
|
|
|
|
+ android:layout_height="@dimen/header_logo_height"
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:src="@mipmap/icon_logo" />
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:layout_gravity="right"
|
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
+
|
|
|
|
|
+ <TextClock
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:format12Hour="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ android:format24Hour="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/header_time_padding"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ android:textSize="@dimen/header_time_text_size" />
|
|
|
|
|
+
|
|
|
|
|
+ <LinearLayout
|
|
|
|
|
+ android:id="@+id/user_info_layout"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:orientation="horizontal">
|
|
|
|
|
+
|
|
|
|
|
+ <ImageView
|
|
|
|
|
+ android:id="@+id/avatar"
|
|
|
|
|
+ android:layout_width="@dimen/avatar_size"
|
|
|
|
|
+ android:layout_height="@dimen/avatar_size"
|
|
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/common_spacing"
|
|
|
|
|
+ android:padding="@dimen/common_spacing"
|
|
|
|
|
+ android:adjustViewBounds="false"
|
|
|
|
|
+ android:src="@mipmap/icon_avatar" />
|
|
|
|
|
+
|
|
|
|
|
+ <TextView
|
|
|
|
|
+ android:id="@+id/nickname"
|
|
|
|
|
+ android:layout_width="wrap_content"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:layout_marginLeft="@dimen/home_nickname_margin"
|
|
|
|
|
+ android:gravity="center"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ android:textSize="@dimen/home_nickname_text_size" />
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <com.grkj.ui_base.widget.FlashingTipTextView
|
|
|
|
|
+ android:id="@+id/flash_tip_tv"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:background="@drawable/bg_main_color_tip"
|
|
|
|
|
+ android:drawableLeft="@mipmap/tip"
|
|
|
|
|
+ android:drawablePadding="@dimen/common_spacing"
|
|
|
|
|
+ android:gravity="center_vertical"
|
|
|
|
|
+ android:paddingHorizontal="@dimen/common_spacing"
|
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
|
+ android:textSize="@dimen/common_btn_text_size"
|
|
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
+
|
|
|
|
|
+ </FrameLayout>
|
|
|
|
|
+
|
|
|
|
|
+ <View
|
|
|
|
|
+ android:id="@+id/header_line"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="@dimen/line_height"
|
|
|
|
|
+ android:layout_below="@+id/header_layout"
|
|
|
|
|
+ android:background="@color/white30" />
|
|
|
|
|
+
|
|
|
|
|
+ <androidx.fragment.app.FragmentContainerView
|
|
|
|
|
+ android:id="@+id/nav_host_fragment"
|
|
|
|
|
+ android:name="androidx.navigation.fragment.NavHostFragment"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:layout_above="@+id/nav_bar"
|
|
|
|
|
+ android:layout_below="@+id/header_line"
|
|
|
|
|
+ app:defaultNavHost="true"
|
|
|
|
|
+ app:navGraph="@navigation/nav_home" />
|
|
|
|
|
+
|
|
|
|
|
+ </RelativeLayout>
|
|
|
|
|
+</layout>
|