mine_fragment.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. <LinearLayout
  91. android:id="@+id/mine_fragment_options_layout"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:background="@color/color_background"
  95. android:orientation="vertical"
  96. android:paddingBottom="4dp"
  97. android:paddingTop="4dp">
  98. <!--附近的人-->
  99. <LinearLayout
  100. android:id="@+id/mine_fragment_nearby_people"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:background="@color/white"
  104. android:clickable="true"
  105. android:orientation="horizontal"
  106. android:padding="8dp">
  107. <ImageView
  108. android:layout_width="0dp"
  109. android:layout_height="wrap_content"
  110. android:layout_weight="2"
  111. android:src="@drawable/mine_nearby_people" />
  112. <TextView
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:layout_gravity="center_vertical"
  116. android:layout_marginLeft="8dp"
  117. android:layout_marginStart="8dp"
  118. android:layout_weight="7"
  119. android:text="附近的人"
  120. android:textStyle="bold" />
  121. <ImageView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="center_vertical"
  125. android:layout_marginEnd="8dp"
  126. android:layout_marginRight="8dp"
  127. android:layout_weight="1"
  128. android:src="@drawable/right_arrow" />
  129. </LinearLayout>
  130. <!--我的便民帖-->
  131. <LinearLayout
  132. android:id="@+id/mine_fragment_trade"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:background="@color/white"
  136. android:clickable="true"
  137. android:orientation="horizontal"
  138. android:padding="8dp">
  139. <ImageView
  140. android:layout_width="0dp"
  141. android:layout_height="wrap_content"
  142. android:layout_weight="2"
  143. android:src="@drawable/mine_trade" />
  144. <TextView
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_gravity="center_vertical"
  148. android:layout_marginLeft="8dp"
  149. android:layout_marginStart="8dp"
  150. android:layout_weight="7"
  151. android:text="我的快讯"
  152. android:textStyle="bold" />
  153. <ImageView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_gravity="center_vertical"
  157. android:layout_marginEnd="8dp"
  158. android:layout_marginRight="8dp"
  159. android:layout_weight="1"
  160. android:src="@drawable/right_arrow" />
  161. </LinearLayout>
  162. <!--设置-->
  163. <LinearLayout
  164. android:id="@+id/mine_fragment_setting"
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content"
  167. android:background="@color/white"
  168. android:clickable="true"
  169. android:orientation="horizontal"
  170. android:padding="8dp">
  171. <ImageView
  172. android:layout_width="0dp"
  173. android:layout_height="wrap_content"
  174. android:layout_weight="2"
  175. android:src="@drawable/mine_settings" />
  176. <TextView
  177. android:layout_width="wrap_content"
  178. android:layout_height="wrap_content"
  179. android:layout_gravity="center_vertical"
  180. android:layout_marginLeft="8dp"
  181. android:layout_marginStart="8dp"
  182. android:layout_weight="8"
  183. android:text="设置"
  184. android:textStyle="bold" />
  185. <ImageView
  186. android:layout_width="wrap_content"
  187. android:layout_height="wrap_content"
  188. android:layout_gravity="center_vertical"
  189. android:layout_marginEnd="8dp"
  190. android:layout_marginRight="8dp"
  191. android:layout_weight="1"
  192. android:src="@drawable/right_arrow" />
  193. </LinearLayout>
  194. </LinearLayout>
  195. </LinearLayout>
  196. </LinearLayout>
  197. </ScrollView>