mine_fragment.xml 8.6 KB

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