mine_fragment.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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. <ImageView
  22. android:id="@+id/mine_fragment_personal_settings"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:src="@drawable/mine_settings_white"
  26. app:layout_anchor="@id/mine_fragment_banner"
  27. app:layout_anchorGravity="top|end"
  28. android:layout_margin="16dp"/>
  29. <com.netease.nim.uikit.common.ui.imageview.HeadImageView
  30. android:id="@+id/mine_fragment_avatar"
  31. android:layout_width="96dp"
  32. android:layout_height="96dp"
  33. android:src="@drawable/nim_avatar_group"
  34. app:layout_anchor="@id/mine_fragment_banner"
  35. app:layout_anchorGravity="bottom|center" />
  36. <ImageView
  37. android:id="@+id/mine_fragment_gender"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:src="@drawable/mine_gender_male"
  41. app:layout_anchor="@id/mine_fragment_avatar"
  42. app:layout_anchorGravity="right|bottom"
  43. android:layout_margin="16dp"
  44. android:layout_marginEnd="10dp"
  45. android:layout_marginRight="10dp"/>
  46. </android.support.design.widget.CoordinatorLayout>
  47. <LinearLayout
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:gravity="center"
  51. android:orientation="vertical">
  52. <TextView
  53. android:id="@+id/mine_fragment_username_tv"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_gravity="center_horizontal"
  57. android:layout_marginTop="16dp"
  58. android:text="用户昵称"
  59. android:textSize="16sp"
  60. android:textStyle="bold" />
  61. <TextView
  62. android:id="@+id/mine_fragment_id_tv"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:layout_gravity="center_horizontal"
  66. android:text="id:000000000" />
  67. <GridLayout
  68. android:id="@+id/mine_fragment_photos_layout"
  69. android:layout_width="match_parent"
  70. android:layout_height="match_parent"
  71. android:columnCount="4">
  72. <LinearLayout
  73. android:layout_width="96dp"
  74. android:layout_height="96dp"
  75. android:gravity="center"
  76. android:orientation="vertical">
  77. <ImageView
  78. android:id="@+id/mine_fragment_edit_photos_img"
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:src="@drawable/mine_edit_photos" />
  82. <TextView
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:text="添加照片" />
  86. </LinearLayout>
  87. </GridLayout>
  88. <LinearLayout
  89. android:id="@+id/mine_fragment_options_layout"
  90. android:layout_width="match_parent"
  91. android:layout_height="wrap_content"
  92. android:background="@color/color_background"
  93. android:orientation="vertical"
  94. android:paddingBottom="4dp"
  95. android:paddingTop="4dp">
  96. <!--附近的人-->
  97. <LinearLayout
  98. android:id="@+id/mine_fragment_nearby_people"
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:background="@color/white"
  102. android:clickable="true"
  103. android:orientation="horizontal"
  104. android:padding="8dp">
  105. <ImageView
  106. android:layout_width="0dp"
  107. android:layout_height="wrap_content"
  108. android:layout_weight="2"
  109. android:src="@drawable/mine_nearby_people" />
  110. <TextView
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_gravity="center_vertical"
  114. android:layout_marginLeft="8dp"
  115. android:layout_marginStart="8dp"
  116. android:layout_weight="7"
  117. android:text="附近的人"
  118. android:textStyle="bold" />
  119. <ImageView
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content"
  122. android:layout_gravity="center_vertical"
  123. android:layout_marginEnd="8dp"
  124. android:layout_marginRight="8dp"
  125. android:layout_weight="1"
  126. android:src="@drawable/right_arrow" />
  127. </LinearLayout>
  128. <!--我的便民帖-->
  129. <LinearLayout
  130. android:id="@+id/mine_fragment_trade"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. android:background="@color/white"
  134. android:clickable="true"
  135. android:orientation="horizontal"
  136. android:padding="8dp">
  137. <ImageView
  138. android:layout_width="0dp"
  139. android:layout_height="wrap_content"
  140. android:layout_weight="2"
  141. android:src="@drawable/mine_trade" />
  142. <TextView
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:layout_gravity="center_vertical"
  146. android:layout_marginLeft="8dp"
  147. android:layout_marginStart="8dp"
  148. android:layout_weight="7"
  149. android:text="我的便民帖"
  150. android:textStyle="bold" />
  151. <ImageView
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:layout_gravity="center_vertical"
  155. android:layout_marginEnd="8dp"
  156. android:layout_marginRight="8dp"
  157. android:layout_weight="1"
  158. android:src="@drawable/right_arrow" />
  159. </LinearLayout>
  160. <!--设置-->
  161. <LinearLayout
  162. android:id="@+id/mine_fragment_setting"
  163. android:layout_width="match_parent"
  164. android:layout_height="wrap_content"
  165. android:background="@color/white"
  166. android:clickable="true"
  167. android:orientation="horizontal"
  168. android:padding="8dp">
  169. <ImageView
  170. android:layout_width="0dp"
  171. android:layout_height="wrap_content"
  172. android:layout_weight="2"
  173. android:src="@drawable/mine_settings" />
  174. <TextView
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_gravity="center_vertical"
  178. android:layout_marginLeft="8dp"
  179. android:layout_marginStart="8dp"
  180. android:layout_weight="8"
  181. android:text="设置"
  182. android:textStyle="bold" />
  183. <ImageView
  184. android:layout_width="wrap_content"
  185. android:layout_height="wrap_content"
  186. android:layout_gravity="center_vertical"
  187. android:layout_marginEnd="8dp"
  188. android:layout_marginRight="8dp"
  189. android:layout_weight="1"
  190. android:src="@drawable/right_arrow" />
  191. </LinearLayout>
  192. </LinearLayout>
  193. </LinearLayout>
  194. </LinearLayout>
  195. </ScrollView>