activity_settings.xml 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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:tool="http://schemas.android.com/tools"
  5. xmlns:binding="http://schemas.android.com/apk/res-auto">
  6. <data>
  7. <variable
  8. name="click"
  9. type="com.hongyegroup.cpt_parttime.ui.SettingsActivity.ClickProxy" />
  10. </data>
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:background="@color/white"
  15. android:orientation="vertical">
  16. <com.guadou.lib_baselib.view.titlebar.EasyTitleBar
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. app:Easy_title="设置"/>
  20. <!--Enable Notification-->
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_margin="@dimen/d_15dp"
  25. android:visibility="gone"
  26. android:orientation="horizontal">
  27. <com.guadou.lib_baselib.font_text_view.TextViewMedium
  28. android:layout_width="0dp"
  29. android:layout_height="wrap_content"
  30. android:layout_weight="1"
  31. android:text="开启消息通知"
  32. android:textColor="@color/black"
  33. android:textSize="@dimen/d_14sp" />
  34. <androidx.appcompat.widget.SwitchCompat
  35. android:id="@+id/switch_notification"
  36. android:layout_width="wrap_content"
  37. android:layout_height="wrap_content"
  38. android:background="@drawable/selector_switch_bg"
  39. app:showText="false"
  40. app:splitTrack="false"
  41. app:theme="@style/scstyle"
  42. app:thumbTint="#00000000"
  43. app:trackTint="#00000000" />
  44. </LinearLayout>
  45. <View
  46. android:layout_width="match_parent"
  47. android:layout_height="@dimen/d_1dp"
  48. android:visibility="gone"
  49. android:background="@color/page_bg" />
  50. <!--重置密码-->
  51. <LinearLayout
  52. android:id="@+id/ll_setting_reset_psd"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. binding:clicks="@{click.resetPassword}"
  57. android:padding="@dimen/d_15dp">
  58. <TextView
  59. android:layout_width="0dp"
  60. android:layout_height="wrap_content"
  61. android:layout_weight="1"
  62. android:text="重置密码"
  63. android:textColor="@color/black"
  64. android:textSize="@dimen/d_14sp" />
  65. <ImageView
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_marginEnd="@dimen/d_10dp"
  69. android:layout_marginRight="@dimen/d_10dp"
  70. android:src="@drawable/iv_back" />
  71. </LinearLayout>
  72. <View
  73. android:layout_width="match_parent"
  74. android:layout_height="@dimen/d_1dp"
  75. android:background="@color/page_bg" />
  76. <!--FAQ-->
  77. <LinearLayout
  78. android:id="@+id/ll_setting_faq"
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:orientation="horizontal"
  82. android:padding="@dimen/d_15dp"
  83. android:visibility="visible">
  84. <TextView
  85. android:layout_width="0dp"
  86. android:layout_height="wrap_content"
  87. android:layout_weight="1"
  88. android:text="常用问题"
  89. android:textColor="@color/black"
  90. android:textSize="@dimen/d_14sp" />
  91. <ImageView
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_marginEnd="@dimen/d_10dp"
  95. android:layout_marginRight="@dimen/d_10dp"
  96. android:src="@drawable/iv_back" />
  97. </LinearLayout>
  98. <View
  99. android:layout_width="match_parent"
  100. android:layout_height="@dimen/d_1dp"
  101. android:visibility="visible"
  102. android:background="@color/page_bg" />
  103. <!--账户注销-->
  104. <LinearLayout
  105. android:id="@+id/ll_clear_cache"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:orientation="horizontal"
  109. android:padding="@dimen/d_15dp">
  110. <TextView
  111. android:layout_width="0dp"
  112. android:layout_height="wrap_content"
  113. android:layout_weight="1"
  114. android:text="账户注销"
  115. android:textColor="@color/black"
  116. android:textSize="@dimen/d_14sp" />
  117. <ImageView
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:layout_marginEnd="@dimen/d_10dp"
  121. android:layout_marginRight="@dimen/d_10dp"
  122. android:src="@drawable/iv_back" />
  123. </LinearLayout>
  124. <View
  125. android:layout_width="match_parent"
  126. android:layout_height="@dimen/d_1dp"
  127. android:background="@color/page_bg" />
  128. <!--Privacy Policy-->
  129. <LinearLayout
  130. android:id="@+id/ll_setting_privacy_policy"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. android:orientation="horizontal"
  134. android:padding="@dimen/d_15dp">
  135. <TextView
  136. android:layout_width="0dp"
  137. android:layout_height="wrap_content"
  138. android:layout_weight="1"
  139. android:text="隐私条款"
  140. android:textColor="@color/black"
  141. android:textSize="@dimen/d_14sp" />
  142. <ImageView
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:layout_marginEnd="@dimen/d_10dp"
  146. android:layout_marginRight="@dimen/d_10dp"
  147. android:src="@drawable/iv_back" />
  148. </LinearLayout>
  149. <View
  150. android:layout_width="match_parent"
  151. android:layout_height="@dimen/d_1dp"
  152. android:background="@color/page_bg" />
  153. <LinearLayout
  154. android:layout_width="match_parent"
  155. android:layout_height="wrap_content"
  156. android:orientation="horizontal"
  157. android:padding="@dimen/d_15dp">
  158. <TextView
  159. android:layout_width="0dp"
  160. android:layout_height="wrap_content"
  161. android:layout_weight="1"
  162. android:text="版本号"
  163. android:textColor="@color/black"
  164. android:textSize="@dimen/d_14sp" />
  165. <TextView
  166. android:layout_width="wrap_content"
  167. android:layout_height="wrap_content"
  168. android:layout_marginRight="@dimen/d_2dp"
  169. android:text="V"
  170. android:textColor="@color/profile_red"
  171. android:textSize="@dimen/d_14sp" />
  172. <TextView
  173. android:id="@+id/text_view_version_no"
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:layout_marginEnd="@dimen/d_10dp"
  177. android:layout_marginRight="@dimen/d_10dp"
  178. android:textColor="@color/profile_red"
  179. android:textSize="@dimen/d_14sp" />
  180. </LinearLayout>
  181. <View
  182. android:layout_width="match_parent"
  183. android:layout_height="@dimen/d_1dp"
  184. android:background="@color/page_bg" />
  185. <TextView
  186. android:id="@+id/button_logout"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:layout_marginLeft="@dimen/d_30dp"
  190. android:layout_marginTop="@dimen/d_45dp"
  191. android:layout_marginRight="@dimen/d_30dp"
  192. android:background="@drawable/selector_app_blue_button_round2_bg"
  193. android:gravity="center"
  194. android:padding="@dimen/d_10dp"
  195. android:text="退出登录"
  196. android:textColor="@color/white"
  197. android:textSize="@dimen/d_16sp" />
  198. </LinearLayout>
  199. </layout>