mine_personal_settings.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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:orientation="vertical">
  7. <android.support.design.widget.AppBarLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content">
  10. <com.sheishuo.app.common.views.BaseToolbar
  11. android:id="@+id/toolbar"
  12. style="@style/fullToolbarStyle"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/action_bar_height"
  15. android:title="设置"
  16. app:left_text="返回" />
  17. </android.support.design.widget.AppBarLayout>
  18. <ScrollView
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content">
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:orientation="vertical">
  25. <LinearLayout
  26. android:id="@+id/personal_settings_avatar_layout"
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:orientation="horizontal"
  30. android:padding="16dp">
  31. <TextView
  32. android:layout_width="0dp"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="center_vertical"
  35. android:layout_weight="9"
  36. android:text="头像" />
  37. <!--官方给定长宽-->
  38. <!--<com.netease.nim.uikit.common.ui.widget.SwitchButton-->
  39. <!--android:layout_width="58dip"-->
  40. <!--android:layout_height="36.67dp"-->
  41. <!--android:layout_gravity="end"/>-->
  42. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  43. android:id="@+id/personal_settings_avatar_img"
  44. android:layout_width="48dp"
  45. android:layout_height="48dp"
  46. android:src="@drawable/nim_avatar_default" />
  47. <ImageView
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:layout_gravity="center"
  51. android:layout_marginLeft="4dp"
  52. android:layout_marginStart="4dp"
  53. android:src="@drawable/right_arrow" />
  54. </LinearLayout>
  55. <View
  56. android:layout_width="match_parent"
  57. android:layout_height="1dp"
  58. android:background="@color/grey_light_light" />
  59. <LinearLayout
  60. android:id="@+id/personal_settings_nickname_layout"
  61. android:layout_width="match_parent"
  62. android:layout_height="wrap_content"
  63. android:orientation="horizontal"
  64. android:padding="16dp">
  65. <TextView
  66. android:layout_width="0dp"
  67. android:layout_height="wrap_content"
  68. android:layout_gravity="center_vertical"
  69. android:layout_weight="9"
  70. android:text="昵称" />
  71. <TextView
  72. android:id="@+id/personal_settings_nickname_TV"
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:gravity="center"
  76. android:src="@drawable/nim_avatar_default"
  77. android:text="昵称" />
  78. </LinearLayout>
  79. <View
  80. android:layout_width="match_parent"
  81. android:layout_height="1dp"
  82. android:background="@color/grey_light_light" />
  83. <LinearLayout
  84. android:id="@+id/personal_settings_gender_layout"
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:orientation="horizontal"
  88. android:padding="16dp">
  89. <TextView
  90. android:layout_width="0dp"
  91. android:layout_height="wrap_content"
  92. android:layout_gravity="center_vertical"
  93. android:layout_weight="9"
  94. android:text="性别" />
  95. <TextView
  96. android:id="@+id/personal_settings_gender_TV"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:gravity="center"
  100. android:src="@drawable/nim_avatar_default"
  101. android:text="性别" />
  102. <ImageView
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:layout_marginLeft="4dp"
  106. android:layout_marginStart="4dp"
  107. android:src="@drawable/right_arrow" />
  108. </LinearLayout>
  109. <View
  110. android:layout_width="match_parent"
  111. android:layout_height="1dp"
  112. android:background="@color/grey_light_light" />
  113. <LinearLayout
  114. android:id="@+id/personal_settings_location_layout"
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:orientation="horizontal"
  118. android:padding="16dp">
  119. <TextView
  120. android:layout_width="0dp"
  121. android:layout_height="wrap_content"
  122. android:layout_gravity="center_vertical"
  123. android:layout_weight="9"
  124. android:text="地区" />
  125. <TextView
  126. android:id="@+id/personal_settings_location_TV"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:gravity="center"
  130. android:src="@drawable/nim_avatar_default"
  131. android:text="地区" />
  132. <ImageView
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:layout_marginLeft="4dp"
  136. android:layout_marginStart="4dp"
  137. android:src="@drawable/right_arrow" />
  138. </LinearLayout>
  139. <View
  140. android:layout_width="match_parent"
  141. android:layout_height="1dp"
  142. android:background="@color/grey_light_light" />
  143. <LinearLayout
  144. android:id="@+id/personal_settings_age_is_public_layout"
  145. android:layout_width="match_parent"
  146. android:layout_height="wrap_content"
  147. android:orientation="horizontal"
  148. android:padding="16dp">
  149. <TextView
  150. android:layout_width="0dp"
  151. android:layout_height="wrap_content"
  152. android:layout_gravity="center_vertical"
  153. android:layout_weight="9"
  154. android:text="是否公开年龄" />
  155. <Switch
  156. android:id="@+id/personal_settings_age_is_public_switch"
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:gravity="center"
  160. android:src="@drawable/nim_avatar_default" />
  161. </LinearLayout>
  162. <View
  163. android:layout_width="match_parent"
  164. android:layout_height="1dp"
  165. android:background="@color/grey_light_light" />
  166. <LinearLayout
  167. android:id="@+id/personal_settings_age_layout"
  168. android:layout_width="match_parent"
  169. android:layout_height="wrap_content"
  170. android:orientation="horizontal"
  171. android:padding="16dp">
  172. <TextView
  173. android:layout_width="0dp"
  174. android:layout_height="wrap_content"
  175. android:layout_gravity="center_vertical"
  176. android:layout_weight="9"
  177. android:text="年龄" />
  178. <TextView
  179. android:id="@+id/personal_settings_age_TV"
  180. android:layout_width="wrap_content"
  181. android:layout_height="wrap_content"
  182. android:gravity="center"
  183. android:src="@drawable/nim_avatar_default"
  184. android:text="21" />
  185. </LinearLayout>
  186. <View
  187. android:layout_width="match_parent"
  188. android:layout_height="1dp"
  189. android:background="@color/grey_light_light" />
  190. <LinearLayout
  191. android:id="@+id/personal_settings_hobby_layout"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:orientation="horizontal"
  195. android:padding="16dp">
  196. <TextView
  197. android:layout_width="0dp"
  198. android:layout_height="wrap_content"
  199. android:layout_gravity="center_vertical"
  200. android:layout_weight="9"
  201. android:text="兴趣爱好" />
  202. <TextView
  203. android:id="@+id/personal_settings_hobby_TV"
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. android:gravity="center"
  207. android:src="@drawable/nim_avatar_default"
  208. android:text="兴趣爱好" />
  209. <ImageView
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. android:layout_marginLeft="4dp"
  213. android:layout_marginStart="4dp"
  214. android:src="@drawable/right_arrow" />
  215. </LinearLayout>
  216. <View
  217. android:layout_width="match_parent"
  218. android:layout_height="1dp"
  219. android:background="@color/grey_light_light" />
  220. <TextView
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:background="@color/grey_light_light"
  224. android:padding="8dp"
  225. android:text="实名认证" />
  226. <LinearLayout
  227. android:id="@+id/personal_settings_real_name_layout"
  228. android:layout_width="match_parent"
  229. android:layout_height="wrap_content"
  230. android:orientation="horizontal"
  231. android:padding="16dp">
  232. <TextView
  233. android:layout_width="0dp"
  234. android:layout_height="wrap_content"
  235. android:layout_gravity="center_vertical"
  236. android:layout_weight="9"
  237. android:text="姓名" />
  238. <TextView
  239. android:id="@+id/personal_settings_real_name_TV"
  240. android:layout_width="wrap_content"
  241. android:layout_height="wrap_content"
  242. android:gravity="center"
  243. android:src="@drawable/nim_avatar_default"
  244. android:text="姓名" />
  245. <ImageView
  246. android:layout_width="wrap_content"
  247. android:layout_height="wrap_content"
  248. android:layout_marginLeft="4dp"
  249. android:layout_marginStart="4dp"
  250. android:src="@drawable/right_arrow" />
  251. </LinearLayout>
  252. <View
  253. android:layout_width="match_parent"
  254. android:layout_height="1dp"
  255. android:background="@color/grey_light_light" />
  256. <LinearLayout
  257. android:id="@+id/personal_settings_ID_num_layout"
  258. android:layout_width="match_parent"
  259. android:layout_height="wrap_content"
  260. android:orientation="horizontal"
  261. android:padding="16dp">
  262. <TextView
  263. android:layout_width="0dp"
  264. android:layout_height="wrap_content"
  265. android:layout_gravity="center_vertical"
  266. android:layout_weight="9"
  267. android:text="身份证" />
  268. <TextView
  269. android:id="@+id/personal_settings_ID_num_TV"
  270. android:layout_width="wrap_content"
  271. android:layout_height="wrap_content"
  272. android:gravity="center"
  273. android:src="@drawable/nim_avatar_default"
  274. android:text="身份证" />
  275. <ImageView
  276. android:layout_width="wrap_content"
  277. android:layout_height="wrap_content"
  278. android:layout_marginLeft="4dp"
  279. android:layout_marginStart="4dp"
  280. android:src="@drawable/right_arrow" />
  281. </LinearLayout>
  282. <View
  283. android:layout_width="match_parent"
  284. android:layout_height="1dp"
  285. android:background="@color/grey_light_light" />
  286. </LinearLayout>
  287. </ScrollView>
  288. </LinearLayout>