fragment_main_user.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:layout_gravity="center"
  8. android:layout_marginLeft="25dp"
  9. android:paddingTop="30dp">
  10. <HorizontalScrollView
  11. android:id="@+id/fragment_main_user_scrollview"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:scrollbars="none">
  15. <LinearLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:orientation="horizontal">
  19. <FrameLayout
  20. android:id="@+id/fragment_main_user_head_layout"
  21. android:layout_width="wrap_content"
  22. android:layout_height="match_parent">
  23. <LinearLayout
  24. android:layout_width="519dp"
  25. android:layout_height="match_parent"
  26. android:divider="@drawable/fragment_user_info_divider"
  27. android:orientation="vertical"
  28. android:showDividers="middle">
  29. <TextView
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:gravity="center|left"
  33. android:text="个人信息"
  34. android:textColor="@color/white"
  35. android:textSize="26dp"></TextView>
  36. <com.edufound.reader.cusview.RoundFrameLayout
  37. android:id="@+id/fragment_main_user_layout"
  38. android:layout_width="match_parent"
  39. android:layout_height="188dp"
  40. android:background="@color/white">
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="match_parent"
  44. android:orientation="horizontal">
  45. <FrameLayout
  46. android:layout_width="0dp"
  47. android:layout_height="match_parent"
  48. android:layout_weight="2">
  49. <ImageView
  50. android:id="@+id/fragment_main_user_head"
  51. android:layout_width="102dp"
  52. android:layout_height="102dp"
  53. android:layout_gravity="center"></ImageView>
  54. </FrameLayout>
  55. <FrameLayout
  56. android:layout_width="0dp"
  57. android:layout_height="match_parent"
  58. android:layout_weight="6">
  59. <androidx.constraintlayout.widget.ConstraintLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:paddingTop="10dp">
  63. <TextView
  64. android:id="@+id/fragment_main_user_phonenum"
  65. android:layout_width="wrap_content"
  66. android:layout_height="48dp"
  67. android:textColor="#272727"
  68. android:textSize="30dp"
  69. app:layout_constraintStart_toStartOf="parent"
  70. app:layout_constraintTop_toTopOf="parent"></TextView>
  71. <TextView
  72. android:id="@+id/fragment_main_user_grade"
  73. android:layout_width="wrap_content"
  74. android:layout_height="48dp"
  75. android:layout_marginBottom="80dp"
  76. android:textColor="#999999"
  77. android:textSize="27dp"
  78. app:layout_constraintBottom_toBottomOf="parent"
  79. app:layout_constraintStart_toStartOf="parent"></TextView>
  80. <ImageView
  81. android:id="@+id/fragment_main_user_setting"
  82. android:layout_width="99dp"
  83. android:layout_height="35dp"
  84. android:layout_marginTop="8dp"
  85. android:layout_marginEnd="16dp"
  86. android:src="@drawable/fragment_my_setting"
  87. app:layout_constraintEnd_toEndOf="parent"
  88. app:layout_constraintTop_toTopOf="parent"></ImageView>
  89. <FrameLayout
  90. android:layout_width="match_parent"
  91. android:layout_height="1dp"
  92. android:layout_marginRight="12dp"
  93. android:alpha="0.2"
  94. android:background="#000000"
  95. app:layout_constraintBottom_toBottomOf="parent"
  96. app:layout_constraintEnd_toEndOf="parent"
  97. app:layout_constraintStart_toStartOf="parent"
  98. app:layout_constraintTop_toTopOf="parent"
  99. app:layout_constraintVertical_bias="0.609"></FrameLayout>
  100. <LinearLayout
  101. android:layout_width="wrap_content"
  102. android:layout_height="40dp"
  103. android:layout_marginBottom="18dp"
  104. android:gravity="center"
  105. android:orientation="horizontal"
  106. app:layout_constraintBottom_toBottomOf="parent"
  107. app:layout_constraintStart_toStartOf="parent">
  108. <TextView
  109. android:layout_width="wrap_content"
  110. android:layout_height="match_parent"
  111. android:gravity="center"
  112. android:text="粉丝"
  113. android:textColor="#999999"
  114. android:textSize="27dp"></TextView>
  115. <Space
  116. android:layout_width="5dp"
  117. android:layout_height="match_parent"></Space>
  118. <TextView
  119. android:id="@+id/fragment_main_user_fans"
  120. android:layout_width="wrap_content"
  121. android:layout_height="match_parent"
  122. android:gravity="center"
  123. android:text="0"
  124. android:textColor="#999999"
  125. android:textSize="27dp"></TextView>
  126. </LinearLayout>
  127. <FrameLayout
  128. android:layout_width="1dp"
  129. android:layout_height="32dp"
  130. android:layout_marginBottom="22dp"
  131. android:alpha="0.2"
  132. android:background="#000000"
  133. app:layout_constraintBottom_toBottomOf="parent"
  134. app:layout_constraintEnd_toEndOf="parent"
  135. app:layout_constraintHorizontal_bias="0.437"
  136. app:layout_constraintStart_toStartOf="parent"></FrameLayout>
  137. <LinearLayout
  138. android:layout_width="wrap_content"
  139. android:layout_height="40dp"
  140. android:layout_marginRight="12dp"
  141. android:layout_marginBottom="18dp"
  142. android:gravity="center"
  143. android:orientation="horizontal"
  144. app:layout_constraintBottom_toBottomOf="parent"
  145. app:layout_constraintEnd_toEndOf="parent">
  146. <TextView
  147. android:layout_width="wrap_content"
  148. android:layout_height="match_parent"
  149. android:gravity="center"
  150. android:text="播放"
  151. android:textColor="#999999"
  152. android:textSize="27dp"></TextView>
  153. <Space
  154. android:layout_width="5dp"
  155. android:layout_height="match_parent"></Space>
  156. <TextView
  157. android:id="@+id/fragment_main_user_playcount"
  158. android:layout_width="wrap_content"
  159. android:layout_height="match_parent"
  160. android:gravity="center"
  161. android:text="0"
  162. android:textColor="#999999"
  163. android:textSize="27dp"></TextView>
  164. </LinearLayout>
  165. </androidx.constraintlayout.widget.ConstraintLayout>
  166. </FrameLayout>
  167. </LinearLayout>
  168. </com.edufound.reader.cusview.RoundFrameLayout>
  169. <LinearLayout
  170. android:layout_width="match_parent"
  171. android:layout_height="195dp"
  172. android:divider="@drawable/fragment_user_info_divider"
  173. android:orientation="horizontal"
  174. android:showDividers="middle">
  175. <FrameLayout
  176. android:id="@+id/fragment_main_user_vip"
  177. android:layout_width="0dp"
  178. android:layout_height="match_parent"
  179. android:layout_weight="1"
  180. android:background="@drawable/fragment_my_vip">
  181. <TextView
  182. android:id="@+id/fragment_main_user_vip_date"
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:layout_gravity="center|bottom"
  186. android:layout_marginBottom="8dp"
  187. android:gravity="center"
  188. android:text="到期:2020-01-06"
  189. android:textColor="@color/white"
  190. android:textSize="26dp"
  191. android:visibility="gone"></TextView>
  192. </FrameLayout>
  193. <FrameLayout
  194. android:id="@+id/fragment_main_user_redflower"
  195. android:layout_width="0dp"
  196. android:layout_height="match_parent"
  197. android:layout_weight="1"
  198. android:background="@drawable/fragment_my_redflower">
  199. <TextView
  200. android:id="@+id/fragment_main_user_redflower_text"
  201. android:layout_width="100dp"
  202. android:layout_height="42dp"
  203. android:layout_gravity="right"
  204. android:layout_marginTop="25dp"
  205. android:layout_marginRight="30dp"
  206. android:gravity="center|left"
  207. android:text="0"
  208. android:textColor="@color/white"
  209. android:textSize="30dp"></TextView>
  210. </FrameLayout>
  211. </LinearLayout>
  212. <LinearLayout
  213. android:layout_width="match_parent"
  214. android:layout_height="80dp"
  215. android:divider="@drawable/main_left_tab_divider"
  216. android:orientation="horizontal"
  217. android:showDividers="middle">
  218. <ImageView
  219. android:id="@+id/fragment_main_user_myattention"
  220. android:layout_width="0dp"
  221. android:layout_height="match_parent"
  222. android:layout_weight="1"
  223. android:src="@drawable/fragment_my_attention"></ImageView>
  224. <ImageView
  225. android:id="@+id/fragment_main_user_mycollection"
  226. android:layout_width="0dp"
  227. android:layout_height="match_parent"
  228. android:layout_weight="1"
  229. android:src="@drawable/fragment_my_collection"></ImageView>
  230. </LinearLayout>
  231. <LinearLayout
  232. android:layout_width="match_parent"
  233. android:layout_height="80dp"
  234. android:divider="@drawable/fragment_user_info_divider"
  235. android:orientation="horizontal"
  236. android:showDividers="middle">
  237. <FrameLayout
  238. android:id="@+id/fragment_main_user_messagenotification"
  239. android:layout_width="0dp"
  240. android:layout_height="match_parent"
  241. android:layout_weight="1">
  242. <ImageView
  243. android:layout_width="match_parent"
  244. android:layout_height="match_parent"
  245. android:src="@drawable/fragment_my_message_notification"></ImageView>
  246. <com.edufound.reader.cusview.RoundFrameLayout
  247. android:id="@+id/fragment_main_user_unread_icon"
  248. android:layout_width="11dp"
  249. android:layout_height="11dp"
  250. android:layout_gravity="right|top"
  251. android:layout_marginTop="10dp"
  252. android:layout_marginRight="10dp"
  253. android:background="@color/red"></com.edufound.reader.cusview.RoundFrameLayout>
  254. </FrameLayout>
  255. <ImageView
  256. android:id="@+id/fragment_main_user_customerservice"
  257. android:layout_width="0dp"
  258. android:layout_height="match_parent"
  259. android:layout_weight="1"
  260. android:src="@drawable/fragment_my_customer_service"></ImageView>
  261. </LinearLayout>
  262. </LinearLayout>
  263. </FrameLayout>
  264. <LinearLayout
  265. android:layout_width="match_parent"
  266. android:layout_height="match_parent"
  267. android:divider="@drawable/fragment_user_info_divider"
  268. android:orientation="vertical"
  269. android:paddingLeft="50dp"
  270. android:showDividers="middle">
  271. <TextView
  272. android:id="@+id/fragment_main_user_myrecordsize"
  273. android:layout_width="match_parent"
  274. android:layout_height="wrap_content"
  275. android:gravity="center|left"
  276. android:paddingLeft="10dp"
  277. android:text="我的作品:0"
  278. android:textColor="@color/white"
  279. android:textSize="26dp"></TextView>
  280. <FrameLayout
  281. android:id="@+id/fragment_main_user_norecord"
  282. android:layout_width="400dp"
  283. android:layout_height="match_parent"
  284. android:visibility="gone">
  285. <ImageView
  286. android:layout_width="wrap_content"
  287. android:layout_height="wrap_content"
  288. android:layout_gravity="center"
  289. android:src="@drawable/fragment_user_no_record"></ImageView>
  290. </FrameLayout>
  291. <GridLayout
  292. android:id="@+id/fragment_my_recyclerview"
  293. android:layout_width="match_parent"
  294. android:layout_height="match_parent"
  295. android:layout_gravity="center"
  296. android:orientation="vertical"></GridLayout>
  297. </LinearLayout>
  298. <Space
  299. android:id="@+id/fragment_main_user_bottomview"
  300. android:layout_width="50dp"
  301. android:layout_height="match_parent"></Space>
  302. </LinearLayout>
  303. </HorizontalScrollView>
  304. </FrameLayout>