mine_user_info_details.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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:fitsSystemWindows="true"
  7. android:orientation="vertical">
  8. <ScrollView
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:orientation="vertical">
  15. <LinearLayout
  16. android:id="@+id/user_info_details_banner_layout"
  17. android:layout_width="match_parent"
  18. android:layout_height="200dp"
  19. android:background="@drawable/mine_user_info_banner"
  20. android:orientation="vertical">
  21. <FrameLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content">
  24. <ImageView
  25. android:id="@+id/user_info_details_setting"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="top|end"
  29. android:layout_margin="8dp"
  30. android:src="@drawable/ico_userinfo_setting"
  31. app:layout_anchorGravity="top|end" />
  32. <android.support.design.widget.CoordinatorLayout
  33. android:id="@+id/user_info_details_coordinator_layout"
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:paddingBottom="24dp"
  37. android:paddingTop="24dp">
  38. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  39. android:id="@+id/user_info_details_avatar"
  40. android:layout_width="96dp"
  41. android:layout_height="96dp"
  42. android:layout_gravity="center"
  43. android:src="@drawable/nim_avatar_default" />
  44. <ImageView
  45. android:id="@+id/user_info_details_gender"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginBottom="8dp"
  49. android:src="@drawable/mine_gender_male"
  50. app:layout_anchor="@id/user_info_details_avatar"
  51. app:layout_anchorGravity="end|bottom" />
  52. </android.support.design.widget.CoordinatorLayout>
  53. </FrameLayout>
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:gravity="center"
  58. android:orientation="vertical">
  59. <TextView
  60. android:id="@+id/user_info_details_name"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:text="用户昵称"
  64. android:textColor="@color/white"
  65. android:textSize="18sp" />
  66. <TextView
  67. android:id="@+id/user_info_details_id"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:text="用户ID"
  71. android:textColor="@color/white" />
  72. </LinearLayout>
  73. </LinearLayout>
  74. <LinearLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:gravity="center_horizontal"
  78. android:orientation="horizontal"
  79. android:padding="8dp">
  80. <Button
  81. android:id="@+id/user_info_details_follow_btn"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_marginEnd="8dp"
  85. android:layout_marginStart="8dp"
  86. android:background="@drawable/btn_rc_transparent"
  87. android:text="关注" />
  88. <Button
  89. android:id="@+id/user_info_details_chat_btn"
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_marginEnd="8dp"
  93. android:layout_marginStart="8dp"
  94. android:background="@drawable/btn_rc_transparent"
  95. android:text="发消息" />
  96. <Button
  97. android:id="@+id/user_info_details_send_gift_btn"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_marginEnd="8dp"
  101. android:layout_marginStart="8dp"
  102. android:background="@drawable/btn_rc_green"
  103. android:text="送礼物"
  104. android:textColor="@color/white" />
  105. </LinearLayout>
  106. <GridLayout
  107. android:id="@+id/user_info_details_personal_photos_layout"
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:columnCount="4"
  111. android:visibility="gone">
  112. <!--<ImageView-->
  113. <!--android:layout_width="96dp"-->
  114. <!--android:layout_height="96dp"-->
  115. <!--android:layout_columnWeight="1"-->
  116. <!--android:src="@drawable/ico_add_grey" />-->
  117. <!--<ImageView-->
  118. <!--android:layout_width="96dp"-->
  119. <!--android:layout_height="96dp"-->
  120. <!--android:layout_columnWeight="1"-->
  121. <!--android:layout_rowWeight="1" />-->
  122. <!--<ImageView-->
  123. <!--android:layout_width="96dp"-->
  124. <!--android:layout_height="96dp"-->
  125. <!--android:layout_columnWeight="1"-->
  126. <!--android:layout_rowWeight="1" />-->
  127. <!--<ImageView-->
  128. <!--android:layout_width="96dp"-->
  129. <!--android:layout_height="96dp"-->
  130. <!--android:layout_columnWeight="1"-->
  131. <!--android:layout_rowWeight="1" />-->
  132. </GridLayout>
  133. <TextView
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginLeft="8dp"
  137. android:layout_marginStart="8dp"
  138. android:paddingBottom="8dp"
  139. android:paddingTop="8dp"
  140. android:text="动态"
  141. android:textSize="16sp" />
  142. <GridLayout
  143. android:id="@+id/user_info_details_tweet_photos_layout"
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:columnCount="4"
  147. android:visibility="gone">
  148. </GridLayout>
  149. <LinearLayout
  150. android:layout_width="match_parent"
  151. android:layout_height="wrap_content"
  152. android:background="@color/white"
  153. android:gravity="center_vertical"
  154. android:orientation="horizontal"
  155. android:padding="8dp">
  156. <TextView
  157. android:layout_width="wrap_content"
  158. android:layout_height="wrap_content"
  159. android:text="年龄: "
  160. android:textSize="16sp" />
  161. <TextView
  162. android:id="@+id/user_info_details_age"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:text="年龄已保密"
  166. android:textColor="@color/grey_light"
  167. android:textSize="16sp" />
  168. </LinearLayout>
  169. <View
  170. android:layout_width="match_parent"
  171. android:layout_height="1dp"
  172. android:background="@color/grey_light_light" />
  173. <LinearLayout
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:background="@color/white"
  177. android:gravity="center_vertical"
  178. android:orientation="horizontal"
  179. android:padding="8dp">
  180. <TextView
  181. android:layout_width="wrap_content"
  182. android:layout_height="wrap_content"
  183. android:text="爱好: "
  184. android:textSize="16sp" />
  185. <TextView
  186. android:id="@+id/user_info_details_hobby"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:text="暂无爱好"
  190. android:textColor="@color/grey_light"
  191. android:textSize="16sp" />
  192. </LinearLayout>
  193. <View
  194. android:layout_width="match_parent"
  195. android:layout_height="1dp"
  196. android:background="@color/grey_light_light" />
  197. <LinearLayout
  198. android:layout_width="match_parent"
  199. android:layout_height="wrap_content"
  200. android:background="@color/white"
  201. android:gravity="center_vertical"
  202. android:orientation="horizontal"
  203. android:padding="8dp">
  204. <TextView
  205. android:layout_width="wrap_content"
  206. android:layout_height="wrap_content"
  207. android:text="地址: "
  208. android:textSize="16sp" />
  209. <TextView
  210. android:id="@+id/user_info_details_location"
  211. android:layout_width="wrap_content"
  212. android:layout_height="wrap_content"
  213. android:textColor="@color/grey_light"
  214. android:textSize="16sp" />
  215. </LinearLayout>
  216. </LinearLayout>
  217. </ScrollView>
  218. </LinearLayout>