activity_quick_entry.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools">
  5. <RelativeLayout
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@mipmap/bg_main"
  9. android:fitsSystemWindows="true"
  10. android:orientation="vertical">
  11. <FrameLayout
  12. android:id="@+id/header_layout"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/header_height"
  15. android:paddingHorizontal="@dimen/header_padding">
  16. <ImageView
  17. android:layout_width="@dimen/header_logo_width"
  18. android:layout_height="@dimen/header_logo_height"
  19. android:layout_gravity="center_vertical"
  20. android:src="@mipmap/icon_logo" />
  21. <LinearLayout
  22. android:layout_width="wrap_content"
  23. android:layout_height="match_parent"
  24. android:layout_gravity="right"
  25. android:orientation="horizontal">
  26. <TextClock
  27. android:layout_width="wrap_content"
  28. android:layout_height="match_parent"
  29. android:format12Hour="yyyy-MM-dd HH:mm:ss"
  30. android:format24Hour="yyyy-MM-dd HH:mm:ss"
  31. android:gravity="center_vertical"
  32. android:paddingHorizontal="@dimen/header_time_padding"
  33. android:textColor="@color/white"
  34. android:textSize="@dimen/header_time_text_size" />
  35. <LinearLayout
  36. android:id="@+id/user_info_layout"
  37. android:layout_width="wrap_content"
  38. android:layout_height="match_parent"
  39. android:orientation="horizontal">
  40. <ImageView
  41. android:id="@+id/avatar"
  42. android:layout_width="@dimen/avatar_size"
  43. android:layout_height="@dimen/avatar_size"
  44. android:layout_gravity="center_vertical"
  45. android:layout_marginLeft="@dimen/common_spacing"
  46. android:padding="@dimen/common_spacing"
  47. android:adjustViewBounds="false"
  48. android:src="@mipmap/icon_avatar" />
  49. <TextView
  50. android:id="@+id/nickname"
  51. android:layout_width="wrap_content"
  52. android:layout_height="match_parent"
  53. android:layout_marginLeft="@dimen/home_nickname_margin"
  54. android:gravity="center"
  55. android:textColor="@color/white"
  56. android:textSize="@dimen/home_nickname_text_size" />
  57. </LinearLayout>
  58. </LinearLayout>
  59. <com.grkj.ui_base.widget.FlashingTipTextView
  60. android:id="@+id/flash_tip_tv"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:background="@drawable/bg_main_color_tip"
  64. android:drawableLeft="@mipmap/tip"
  65. android:drawablePadding="@dimen/common_spacing"
  66. android:gravity="center_vertical"
  67. android:paddingHorizontal="@dimen/common_spacing"
  68. android:textColor="@color/white"
  69. android:textSize="@dimen/common_btn_text_size"
  70. android:visibility="gone" />
  71. </FrameLayout>
  72. <View
  73. android:id="@+id/header_line"
  74. android:layout_width="match_parent"
  75. android:layout_height="@dimen/line_height"
  76. android:layout_below="@+id/header_layout"
  77. android:background="@color/white30" />
  78. <androidx.fragment.app.FragmentContainerView
  79. android:id="@+id/nav_host_fragment"
  80. android:name="androidx.navigation.fragment.NavHostFragment"
  81. android:layout_width="match_parent"
  82. android:layout_height="match_parent"
  83. android:layout_above="@+id/nav_bar"
  84. android:layout_below="@+id/header_line"
  85. app:defaultNavHost="true"
  86. app:navGraph="@navigation/nav_home" />
  87. </RelativeLayout>
  88. </layout>