星火管控
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_main.xml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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/main_bg"
  7. android:orientation="vertical">
  8. <FrameLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent">
  11. <LinearLayout
  12. android:id="@+id/main_llayout"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. android:orientation="vertical"
  16. android:paddingTop="30dp">
  17. <Button
  18. android:id="@+id/btn"
  19. android:layout_width="100dp"
  20. android:layout_height="100dp"
  21. android:text="管理页面"
  22. android:visibility="gone" />
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_marginLeft="21dp"
  27. android:layout_marginRight="21dp"
  28. android:gravity="center_vertical"
  29. android:orientation="horizontal">
  30. <TextView
  31. android:id="@+id/username_tv"
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:layout_weight="1"
  35. android:text="姓名"
  36. android:textColor="#253A70"
  37. android:textSize="19sp" />
  38. <LinearLayout
  39. android:id="@+id/loginout_llayout"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_marginRight="10dp"
  43. android:gravity="center_vertical">
  44. <ImageView
  45. android:id="@+id/loginout_iv"
  46. android:layout_width="19dp"
  47. android:layout_height="18dp"
  48. android:layout_marginRight="2dp"
  49. android:src="@drawable/icon_logout" />
  50. <TextView
  51. android:id="@+id/loginout_tv"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:text="注销"
  55. android:textColor="#253A70"
  56. android:textSize="19sp" />
  57. </LinearLayout>
  58. </LinearLayout>
  59. <TextView
  60. android:id="@+id/userschool_tv"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_marginLeft="21dp"
  64. android:layout_marginRight="21dp"
  65. android:textColor="#798CB5"
  66. android:textSize="15sp" />
  67. <androidx.recyclerview.widget.RecyclerView
  68. android:id="@+id/rv"
  69. android:layout_width="match_parent"
  70. android:layout_height="match_parent"
  71. android:layout_marginTop="24dp"
  72. android:overScrollMode="never" />
  73. </LinearLayout>
  74. <LinearLayout
  75. android:id="@+id/lock_llayout"
  76. android:layout_width="match_parent"
  77. android:layout_height="match_parent"
  78. android:background="@drawable/main_bg"
  79. android:gravity="center_horizontal"
  80. android:orientation="vertical"
  81. android:visibility="gone">
  82. <ImageView
  83. android:layout_width="157dp"
  84. android:layout_height="151dp"
  85. android:layout_marginTop="104dp"
  86. android:src="@drawable/icon_lock" />
  87. <FrameLayout
  88. android:layout_width="wrap_content"
  89. android:layout_height="53dp"
  90. android:layout_marginTop="26dp">
  91. <EditText
  92. android:id="@+id/lock_et"
  93. android:layout_width="357dp"
  94. android:layout_height="53dp"
  95. android:background="@drawable/shape_shadow_bg"
  96. android:hint="@string/passcode"
  97. android:maxLength="20"
  98. android:paddingLeft="28dp"
  99. android:paddingRight="28dp"
  100. android:singleLine="true"
  101. android:textColor="@color/codetipscolor"
  102. android:textColorHint="@color/codehintcolor"
  103. android:textSize="16sp" />
  104. <androidx.cardview.widget.CardView
  105. android:id="@+id/codeenter_cv"
  106. android:layout_width="24dp"
  107. android:layout_height="24dp"
  108. android:layout_gravity="center_vertical|right"
  109. android:layout_marginRight="18dp"
  110. app:cardBackgroundColor="@color/white">
  111. <ImageView
  112. android:layout_width="wrap_content"
  113. android:layout_height="11dp"
  114. android:layout_gravity="center"
  115. android:src="@drawable/icon_etenter" />
  116. </androidx.cardview.widget.CardView>
  117. </FrameLayout>
  118. <TextView
  119. android:id="@+id/locktips_tv"
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:layout_marginTop="18dp"
  123. android:text="@string/locktips"
  124. android:textColor="@color/codetipscolor"
  125. android:textSize="17sp" />
  126. </LinearLayout>
  127. <LinearLayout
  128. android:id="@+id/netset_llayout"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:layout_gravity="bottom|right"
  132. android:layout_marginRight="10dp"
  133. android:layout_marginBottom="10dp"
  134. android:gravity="center"
  135. android:orientation="horizontal">
  136. <ImageView
  137. android:layout_width="10dp"
  138. android:layout_height="10dp"
  139. android:layout_marginRight="3dp"
  140. android:src="@drawable/icon_wifiset" />
  141. <TextView
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:text="@string/netset"
  145. android:textColor="#798CB5"
  146. android:textSize="8sp" />
  147. </LinearLayout>
  148. </FrameLayout>
  149. </LinearLayout>