activity_home.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@drawable/login_button_normal"
  7. android:orientation="vertical">
  8. <FrameLayout
  9. android:id="@+id/fl_title"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content"
  12. app:layout_constraintEnd_toEndOf="parent"
  13. app:layout_constraintStart_toStartOf="parent"
  14. app:layout_constraintTop_toTopOf="parent">
  15. <com.sunwin.visitorapp.view.UINav
  16. android:id="@+id/UINav"
  17. android:visibility="gone"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content" />
  20. <RelativeLayout
  21. android:id="@+id/ll_home_title"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:orientation="horizontal">
  25. <TextView
  26. android:id="@+id/tv_loginOut"
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:text="退出登录"
  30. android:textSize="@dimen/sp_20"
  31. android:layout_alignParentLeft="true"
  32. android:layout_marginLeft="20dp"
  33. android:textColor="@color/black"
  34. android:padding="10dp"
  35. android:scaleType="fitCenter"
  36. android:src="@drawable/ui_vector_setting" />
  37. <TextView
  38. android:id="@+id/TextTitle"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:layout_centerInParent="true"
  42. android:padding="15dp"
  43. android:text="@string/app_name"
  44. android:textColor="@color/black"
  45. android:textSize="@dimen/sp_25" />
  46. <ImageView
  47. android:id="@+id/ImageStatus"
  48. android:layout_width="60dp"
  49. android:layout_height="60dp"
  50. android:layout_toLeftOf="@+id/ImageSetting"
  51. android:padding="10dp"
  52. android:scaleType="fitCenter"
  53. android:src="@drawable/ui_vector_status" />
  54. <ImageView
  55. android:id="@+id/ImageSetting"
  56. android:layout_width="60dp"
  57. android:layout_height="60dp"
  58. android:layout_alignParentRight="true"
  59. android:layout_marginLeft="20dp"
  60. android:padding="10dp"
  61. android:scaleType="fitCenter"
  62. android:src="@drawable/ui_vector_setting" />
  63. </RelativeLayout>
  64. </FrameLayout>
  65. <FrameLayout
  66. android:id="@+id/FragmentView"
  67. android:layout_width="0dp"
  68. android:layout_height="0dp"
  69. android:layout_marginStart="10dp"
  70. android:layout_marginEnd="40dp"
  71. android:background="@drawable/card_white"
  72. app:layout_constraintBottom_toBottomOf="@id/ViewClock"
  73. app:layout_constraintEnd_toEndOf="parent"
  74. app:layout_constraintHorizontal_weight="5"
  75. app:layout_constraintStart_toEndOf="@id/ViewClock"
  76. app:layout_constraintTop_toTopOf="@id/ViewClock"
  77. >
  78. </FrameLayout>
  79. <LinearLayout
  80. android:id="@+id/ViewClock"
  81. android:layout_width="0dp"
  82. android:layout_height="0dp"
  83. android:layout_marginStart="40dp"
  84. android:layout_marginTop="10dp"
  85. android:layout_marginEnd="10dp"
  86. android:layout_marginBottom="10dp"
  87. android:background="@drawable/card_white"
  88. app:layout_constraintBottom_toTopOf="@id/ViewMenu"
  89. app:layout_constraintEnd_toStartOf="@id/FragmentView"
  90. app:layout_constraintHorizontal_weight="2"
  91. app:layout_constraintStart_toStartOf="parent"
  92. app:layout_constraintTop_toBottomOf="@id/fl_title"
  93. >
  94. </LinearLayout>
  95. <LinearLayout
  96. android:id="@+id/ViewMenu"
  97. android:layout_width="0dp"
  98. android:layout_height="wrap_content"
  99. android:layout_marginStart="30dp"
  100. android:layout_marginTop="20dp"
  101. android:layout_marginEnd="30dp"
  102. android:layout_marginBottom="20dp"
  103. android:orientation="horizontal"
  104. app:layout_constraintBottom_toBottomOf="parent"
  105. app:layout_constraintEnd_toEndOf="parent"
  106. app:layout_constraintStart_toStartOf="parent"
  107. app:layout_constraintTop_toBottomOf="@id/ViewClock">
  108. <LinearLayout
  109. android:id="@+id/MenuItemRecord"
  110. style="@style/Home_Menu_Item_View">
  111. <ImageView
  112. style="@style/Home_Menu_Item_Icon"
  113. android:background="@drawable/menu_orange"
  114. android:src="@drawable/ui_vector_record" />
  115. <TextView
  116. style="@style/Home_Menu_Item_Label"
  117. android:text="访客记录" />
  118. </LinearLayout>
  119. <LinearLayout
  120. android:id="@+id/MenuItemSign"
  121. style="@style/Home_Menu_Item_View">
  122. <ImageView
  123. style="@style/Home_Menu_Item_Icon"
  124. android:background="@drawable/menu_green"
  125. android:src="@drawable/ui_vector_sign" />
  126. <TextView
  127. style="@style/Home_Menu_Item_Label"
  128. android:text="访客签到" />
  129. </LinearLayout>
  130. <LinearLayout
  131. android:id="@+id/MenuItemRegister"
  132. style="@style/Home_Menu_Item_View">
  133. <ImageView
  134. style="@style/Home_Menu_Item_Icon"
  135. android:background="@drawable/menu_yellow"
  136. android:src="@drawable/ui_vector_register" />
  137. <TextView
  138. style="@style/Home_Menu_Item_Label"
  139. android:text="访客登记" />
  140. </LinearLayout>
  141. <LinearLayout
  142. android:id="@+id/MenuItemLeave"
  143. style="@style/Home_Menu_Item_View">
  144. <ImageView
  145. style="@style/Home_Menu_Item_Icon"
  146. android:background="@drawable/menu_red"
  147. android:src="@drawable/ui_vector_leave" />
  148. <TextView
  149. style="@style/Home_Menu_Item_Label"
  150. android:text="访客签离" />
  151. </LinearLayout>
  152. <LinearLayout
  153. android:id="@+id/MenuItemCheck"
  154. style="@style/Home_Menu_Item_View">
  155. <ImageView
  156. style="@style/Home_Menu_Item_Icon"
  157. android:background="@drawable/menu_gray"
  158. android:src="@drawable/ui_vector_check" />
  159. <TextView
  160. style="@style/Home_Menu_Item_Label"
  161. android:text="快速核验" />
  162. </LinearLayout>
  163. </LinearLayout>
  164. </androidx.constraintlayout.widget.ConstraintLayout>