| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <?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="@drawable/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:layout_margin="@dimen/iscs_space_2"
- android:paddingHorizontal="@dimen/iscs_space_1">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@drawable/bg_home_header"
- android:orientation="horizontal">
- <ImageView
- android:layout_width="@dimen/header_logo_width"
- android:layout_height="@dimen/header_logo_height"
- android:layout_gravity="center_vertical"
- app:skinSrc='@{"icon_logo.png"}' />
- <TextClock
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="right"
- android:format12Hour="yyyy-MM-dd HH:mm:ss"
- android:format24Hour="yyyy-MM-dd HH:mm:ss"
- android:gravity="center"
- android:paddingHorizontal="@dimen/iscs_space_1"
- android:textColor="?attr/colorTextPrimary"
- android:textSize="@dimen/iscs_text_md" />
- </FrameLayout>
- <LinearLayout
- android:id="@+id/user_info_layout"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/iscs_space_2"
- android:background="@drawable/bg_card_blue_radius_md"
- android:orientation="horizontal"
- android:paddingHorizontal="@dimen/iscs_space_2">
- <ImageView
- android:id="@+id/avatar"
- android:layout_width="@dimen/avatar_size"
- android:layout_height="@dimen/avatar_size"
- android:layout_gravity="center_vertical"
- android:padding="@dimen/iscs_space_1"
- android:src="@mipmap/icon_avatar"
- android:tint="?attr/colorWhite" />
- <TextView
- android:id="@+id/nickname"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/iscs_space_2"
- android:ellipsize="end"
- android:gravity="center"
- android:maxLength="13"
- android:singleLine="true"
- android:textColor="?attr/colorTextPrimary"
- android:textSize="@dimen/iscs_text_md"
- tools:text="张三" />
- </LinearLayout>
- </LinearLayout>
- </FrameLayout>
- <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/bottom_layout"
- android:layout_below="@+id/header_layout"
- app:defaultNavHost="true"
- app:navGraph="@navigation/nav_home" />
- <FrameLayout
- android:id="@+id/bottom_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true">
- <TextView
- android:id="@+id/bottom_tip"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginLeft="@dimen/iscs_space_4"
- android:drawableLeft="@mipmap/tip"
- android:drawablePadding="@dimen/iscs_space_2"
- android:textColor="?attr/colorTextPrimary"
- android:textSize="@dimen/iscs_text_md"
- android:visibility="gone" />
- <com.grkj.ui_base.widget.CustomNavBar
- android:id="@+id/nav_bar"
- android:layout_width="match_parent"
- android:layout_height="@dimen/home_bottom_nav_size"
- app:navBarBackground="?attr/colorSecBg"
- app:navIconSelectedSize="@dimen/home_bottom_nav_icon_size"
- app:navIconSize="@dimen/home_bottom_nav_icon_size"
- app:navOrientation="horizontal"
- app:navTextSelectedSize="@dimen/iscs_text_sm"
- app:navTextSize="@dimen/iscs_text_sm" />
- </FrameLayout>
- </RelativeLayout>
- </layout>
|