mine_fragment.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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:padding="8dp">
  151. <ImageView
  152. android:layout_width="0dp"
  153. android:layout_height="wrap_content"
  154. android:layout_weight="2"
  155. android:src="@drawable/mine_nearby_people" />
  156. <TextView
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:layout_gravity="center_vertical"
  160. android:layout_marginLeft="8dp"
  161. android:layout_marginStart="8dp"
  162. android:layout_weight="7"
  163. android:text="附近的人"
  164. android:textStyle="bold" />
  165. <ImageView
  166. android:layout_width="wrap_content"
  167. android:layout_height="wrap_content"
  168. android:layout_gravity="center_vertical"
  169. android:layout_marginEnd="8dp"
  170. android:layout_marginRight="8dp"
  171. android:layout_weight="1"
  172. android:src="@drawable/right_arrow" />
  173. </LinearLayout>
  174. <!--我的便民帖-->
  175. <LinearLayout
  176. android:id="@+id/mine_fragment_trade"
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content"
  179. android:background="@color/white"
  180. android:clickable="true"
  181. android:orientation="horizontal"
  182. android:padding="8dp">
  183. <ImageView
  184. android:layout_width="0dp"
  185. android:layout_height="wrap_content"
  186. android:layout_weight="2"
  187. android:src="@drawable/mine_trade" />
  188. <TextView
  189. android:layout_width="wrap_content"
  190. android:layout_height="wrap_content"
  191. android:layout_gravity="center_vertical"
  192. android:layout_marginLeft="8dp"
  193. android:layout_marginStart="8dp"
  194. android:layout_weight="7"
  195. android:text="我的快讯"
  196. android:textStyle="bold" />
  197. <ImageView
  198. android:layout_width="wrap_content"
  199. android:layout_height="wrap_content"
  200. android:layout_gravity="center_vertical"
  201. android:layout_marginEnd="8dp"
  202. android:layout_marginRight="8dp"
  203. android:layout_weight="1"
  204. android:src="@drawable/right_arrow" />
  205. </LinearLayout>
  206. <!--设置-->
  207. <LinearLayout
  208. android:id="@+id/mine_fragment_setting"
  209. android:layout_width="match_parent"
  210. android:layout_height="wrap_content"
  211. android:background="@color/white"
  212. android:clickable="true"
  213. android:orientation="horizontal"
  214. android:padding="8dp">
  215. <ImageView
  216. android:layout_width="0dp"
  217. android:layout_height="wrap_content"
  218. android:layout_weight="2"
  219. android:src="@drawable/mine_settings" />
  220. <TextView
  221. android:layout_width="wrap_content"
  222. android:layout_height="wrap_content"
  223. android:layout_gravity="center_vertical"
  224. android:layout_marginLeft="8dp"
  225. android:layout_marginStart="8dp"
  226. android:layout_weight="8"
  227. android:text="设置"
  228. android:textStyle="bold" />
  229. <ImageView
  230. android:layout_width="wrap_content"
  231. android:layout_height="wrap_content"
  232. android:layout_gravity="center_vertical"
  233. android:layout_marginEnd="8dp"
  234. android:layout_marginRight="8dp"
  235. android:layout_weight="1"
  236. android:src="@drawable/right_arrow" />
  237. </LinearLayout>
  238. </LinearLayout>
  239. </LinearLayout>
  240. </LinearLayout>
  241. </ScrollView>