mine_fragment.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/mine_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:orientation="vertical">
  12. <android.support.design.widget.CoordinatorLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="240dp">
  15. <ImageView
  16. android:id="@+id/mine_fragment_banner"
  17. android:layout_width="match_parent"
  18. android:layout_height="192dp"
  19. android:scaleType="center"
  20. android:src="@drawable/avchat_call_bg" />
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="192dp"
  24. android:gravity="center"
  25. android:orientation="horizontal">
  26. <TextView
  27. android:layout_width="wrap_content"
  28. android:layout_height="wrap_content"
  29. android:layout_weight="1"
  30. android:enabled="false"
  31. android:shadowColor="@color/black"
  32. android:shadowDx="1"
  33. android:shadowDy="1"
  34. android:shadowRadius="1"
  35. android:text="轻触换背景"
  36. android:textAlignment="center"
  37. android:textColor="@color/GreyWhite" />
  38. </LinearLayout>
  39. <ImageView
  40. android:id="@+id/mine_fragment_personal_settings"
  41. android:layout_width="30dp"
  42. android:layout_height="30dp"
  43. android:layout_margin="16dp"
  44. android:src="@drawable/mine_settings_white"
  45. app:layout_anchor="@id/mine_fragment_banner"
  46. app:layout_anchorGravity="top|right" />
  47. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  48. android:id="@+id/mine_fragment_avatar"
  49. android:layout_width="96dp"
  50. android:layout_height="96dp"
  51. android:src="@drawable/nim_avatar_group"
  52. app:layout_anchor="@id/mine_fragment_banner"
  53. app:layout_anchorGravity="bottom|center" />
  54. <ImageView
  55. android:id="@+id/mine_fragment_gender"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:src="@drawable/mine_gender_male"
  59. app:layout_anchor="@id/mine_fragment_avatar"
  60. app:layout_anchorGravity="right|bottom"
  61. android:layout_margin="16dp"
  62. android:layout_marginEnd="10dp"
  63. android:layout_marginRight="10dp"/>
  64. </android.support.design.widget.CoordinatorLayout>
  65. <LinearLayout
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:gravity="center"
  69. android:orientation="vertical">
  70. <TextView
  71. android:id="@+id/mine_fragment_username_tv"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_gravity="center_horizontal"
  75. android:layout_marginTop="16dp"
  76. android:text="用户昵称"
  77. android:textSize="16sp"
  78. android:textStyle="bold" />
  79. <TextView
  80. android:id="@+id/mine_fragment_id_tv"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_gravity="center_horizontal"
  84. android:text="id:000000000" />
  85. <GridLayout
  86. android:id="@+id/mine_fragment_photos_layout"
  87. android:layout_width="match_parent"
  88. android:layout_height="match_parent"
  89. android:columnCount="4"/>
  90. <TextView
  91. android:id="@+id/textView8"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:layout_marginLeft="8dp"
  95. android:layout_marginStart="8dp"
  96. android:paddingBottom="8dp"
  97. android:paddingTop="8dp"
  98. android:text="动态"
  99. android:textSize="16sp" />
  100. <RelativeLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="match_parent">
  103. <LinearLayout
  104. android:id="@+id/mine_fragment_detail_circle"
  105. android:layout_width="match_parent"
  106. android:layout_height="80dp"
  107. android:background="#00000000"
  108. android:gravity="right"
  109. android:orientation="horizontal">
  110. <LinearLayout
  111. android:layout_width="wrap_content"
  112. android:layout_height="match_parent"
  113. android:gravity="right|center"
  114. android:paddingLeft="200dp"
  115. android:paddingRight="20dp">
  116. <TextView
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_weight="1"
  120. android:text="..." />
  121. <ImageView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_weight="1"
  125. app:srcCompat="@drawable/nim_arrow_right" />
  126. </LinearLayout>
  127. </LinearLayout>
  128. <GridLayout
  129. android:id="@+id/mine_fragment_details_tweet_photos_layout"
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:columnCount="4"></GridLayout>
  133. </RelativeLayout>
  134. <LinearLayout
  135. android:id="@+id/mine_fragment_options_layout"
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content"
  138. android:background="@color/color_background"
  139. android:orientation="vertical"
  140. android:paddingBottom="4dp"
  141. android:paddingTop="4dp">
  142. <!--附近的人-->
  143. <LinearLayout
  144. android:id="@+id/mine_fragment_nearby_people"
  145. android:layout_width="match_parent"
  146. android:layout_height="wrap_content"
  147. android:background="@color/white"
  148. android:clickable="true"
  149. android:orientation="horizontal"
  150. android:paddingBottom="8dp"
  151. android:paddingLeft="20dp"
  152. android:paddingRight="20dp"
  153. android:paddingTop="8dp">
  154. <ImageView
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:src="@drawable/mine_nearby_people" />
  158. <TextView
  159. android:layout_width="wrap_content"
  160. android:layout_height="wrap_content"
  161. android:layout_gravity="center_vertical"
  162. android:layout_marginLeft="10dp"
  163. android:text="附近的人"
  164. android:textStyle="bold" />
  165. <LinearLayout
  166. android:layout_width="match_parent"
  167. android:layout_height="match_parent"
  168. android:gravity="right"
  169. android:orientation="horizontal">
  170. <ImageView
  171. android:id="@+id/imageView3"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:layout_gravity="center_vertical"
  175. android:src="@drawable/right_arrow" />
  176. </LinearLayout>
  177. </LinearLayout>
  178. <!--我的便民帖-->
  179. <LinearLayout
  180. android:layout_width="match_parent"
  181. android:layout_height="1dp"
  182. android:background="@color/grey_light_light"
  183. android:orientation="horizontal">
  184. </LinearLayout>
  185. <LinearLayout
  186. android:id="@+id/mine_fragment_trade"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:background="@color/white"
  190. android:clickable="true"
  191. android:orientation="horizontal"
  192. android:paddingBottom="8dp"
  193. android:paddingLeft="20dp"
  194. android:paddingRight="20dp"
  195. android:paddingTop="8dp">
  196. <ImageView
  197. android:layout_width="wrap_content"
  198. android:layout_height="wrap_content"
  199. android:src="@drawable/mine_trade" />
  200. <TextView
  201. android:layout_width="wrap_content"
  202. android:layout_height="wrap_content"
  203. android:layout_gravity="center_vertical"
  204. android:layout_marginLeft="8dp"
  205. android:layout_marginStart="8dp"
  206. android:text="我的快讯广告"
  207. android:textStyle="bold" />
  208. <LinearLayout
  209. android:layout_width="match_parent"
  210. android:layout_height="match_parent"
  211. android:gravity="right|center_vertical"
  212. android:orientation="horizontal">
  213. <ImageView
  214. android:id="@+id/imageView4"
  215. android:layout_width="wrap_content"
  216. android:layout_height="wrap_content"
  217. android:src="@drawable/right_arrow" />
  218. </LinearLayout>
  219. </LinearLayout>
  220. <!--设置-->
  221. <LinearLayout
  222. android:layout_width="match_parent"
  223. android:layout_height="1dp"
  224. android:background="@color/grey_light_light"
  225. android:orientation="horizontal"></LinearLayout>
  226. <LinearLayout
  227. android:id="@+id/mine_fragment_setting"
  228. android:layout_width="match_parent"
  229. android:layout_height="wrap_content"
  230. android:background="@color/white"
  231. android:clickable="true"
  232. android:orientation="horizontal"
  233. android:paddingBottom="8dp"
  234. android:paddingLeft="20dp"
  235. android:paddingRight="20dp"
  236. android:paddingTop="8dp">
  237. <ImageView
  238. android:layout_width="wrap_content"
  239. android:layout_height="wrap_content"
  240. android:src="@drawable/mine_settings" />
  241. <TextView
  242. android:layout_width="wrap_content"
  243. android:layout_height="wrap_content"
  244. android:layout_gravity="center_vertical"
  245. android:layout_marginLeft="10dp"
  246. android:text="设置"
  247. android:textStyle="bold" />
  248. <LinearLayout
  249. android:layout_width="match_parent"
  250. android:layout_height="match_parent"
  251. android:gravity="right|center_vertical"
  252. android:orientation="horizontal">
  253. <ImageView
  254. android:id="@+id/imageView5"
  255. android:layout_width="wrap_content"
  256. android:layout_height="wrap_content"
  257. android:src="@drawable/right_arrow" />
  258. </LinearLayout>
  259. </LinearLayout>
  260. </LinearLayout>
  261. </LinearLayout>
  262. </LinearLayout>
  263. </ScrollView>