popupwindow_show_ranklist.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. <androidx.constraintlayout.widget.ConstraintLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent">
  10. <FrameLayout
  11. android:id="@+id/background"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:background="@drawable/popupwindow_ranklist_window_bg"
  15. app:layout_constraintBottom_toBottomOf="parent"
  16. app:layout_constraintEnd_toEndOf="parent"
  17. app:layout_constraintStart_toStartOf="parent"
  18. app:layout_constraintTop_toTopOf="parent"></FrameLayout>
  19. <FrameLayout
  20. android:layout_width="1280dp"
  21. android:layout_height="720dp"
  22. android:gravity="center"
  23. android:orientation="vertical"
  24. app:layout_constraintBottom_toBottomOf="parent"
  25. app:layout_constraintDimensionRatio="h,16:9"
  26. app:layout_constraintEnd_toEndOf="parent"
  27. app:layout_constraintStart_toStartOf="parent"
  28. app:layout_constraintTop_toTopOf="parent">
  29. <androidx.constraintlayout.widget.ConstraintLayout
  30. android:layout_width="953dp"
  31. android:layout_height="592dp"
  32. android:layout_gravity="center"
  33. android:layout_marginTop="30dp"
  34. android:background="@drawable/popupwindow_ranklist_bg">
  35. <LinearLayout
  36. android:layout_width="860dp"
  37. android:layout_height="37dp"
  38. android:orientation="horizontal"
  39. app:layout_constraintBottom_toTopOf="@+id/roundFrameLayout"
  40. app:layout_constraintEnd_toEndOf="parent"
  41. app:layout_constraintStart_toStartOf="parent"
  42. app:layout_constraintTop_toTopOf="parent">
  43. <TextView
  44. android:layout_width="0dp"
  45. android:layout_height="wrap_content"
  46. android:layout_weight="2"
  47. android:paddingLeft="20dp"
  48. android:text="排名"
  49. android:textColor="#8D4C05"
  50. android:textSize="26dp"></TextView>
  51. <TextView
  52. android:layout_width="0dp"
  53. android:layout_height="wrap_content"
  54. android:layout_weight="4.2"
  55. android:text="昵称"
  56. android:textColor="#8D4C05"
  57. android:textSize="26dp"></TextView>
  58. <Space
  59. android:layout_width="0dp"
  60. android:layout_height="match_parent"
  61. android:layout_weight="1"></Space>
  62. <TextView
  63. android:layout_width="0dp"
  64. android:layout_height="wrap_content"
  65. android:layout_weight="1"
  66. android:gravity="center"
  67. android:text="点赞"
  68. android:textColor="#8D4C05"
  69. android:textSize="26dp"></TextView>
  70. <TextView
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_weight="1"
  74. android:gravity="center"
  75. android:text="收藏"
  76. android:textColor="#8D4C05"
  77. android:textSize="26dp"></TextView>
  78. <TextView
  79. android:layout_width="0dp"
  80. android:layout_height="wrap_content"
  81. android:layout_weight="1"
  82. android:gravity="center"
  83. android:text="成绩"
  84. android:textColor="#8D4C05"
  85. android:textSize="26dp"></TextView>
  86. <Space
  87. android:layout_width="0dp"
  88. android:layout_height="match_parent"
  89. android:layout_weight="0.2"></Space>
  90. </LinearLayout>
  91. <com.edufound.reader.cusview.RoundFrameLayout
  92. android:id="@+id/roundFrameLayout"
  93. android:layout_width="860dp"
  94. android:layout_height="480dp"
  95. android:layout_gravity="center"
  96. android:layout_marginTop="24dp"
  97. app:layout_constraintBottom_toBottomOf="parent"
  98. app:layout_constraintEnd_toEndOf="parent"
  99. app:layout_constraintHorizontal_bias="0.47"
  100. app:layout_constraintStart_toStartOf="parent"
  101. app:layout_constraintTop_toTopOf="parent">
  102. <LinearLayout
  103. android:id="@+id/popupwindow_ranklist_recyclerview_layout"
  104. android:layout_width="match_parent"
  105. android:layout_height="match_parent"
  106. android:orientation="vertical">
  107. <androidx.recyclerview.widget.RecyclerView
  108. android:id="@+id/popupwindow_ranklist_recyclerview"
  109. android:layout_width="match_parent"
  110. android:layout_height="0dp"
  111. android:layout_weight="9"
  112. android:orientation="vertical"></androidx.recyclerview.widget.RecyclerView>
  113. <FrameLayout
  114. android:id="@+id/popupwindow_ranklist_myinfo_layout"
  115. android:layout_width="match_parent"
  116. android:layout_height="0dp"
  117. android:layout_weight="1.5"
  118. android:background="@drawable/ranklist_my_bg"
  119. android:visibility="invisible">
  120. <LinearLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="63dp"
  123. android:layout_gravity="center"
  124. android:gravity="center"
  125. android:orientation="horizontal"
  126. android:paddingLeft="10dp">
  127. <FrameLayout
  128. android:layout_width="0dp"
  129. android:layout_height="match_parent"
  130. android:layout_weight="1">
  131. <TextView
  132. android:id="@+id/popupwindow_show_ranklist_my_num"
  133. android:layout_width="wrap_content"
  134. android:layout_height="36dp"
  135. android:layout_gravity="center"
  136. android:text="1"
  137. android:textColor="#8D4C05"
  138. android:textSize="22dp"></TextView>
  139. </FrameLayout>
  140. <Space
  141. android:layout_width="0dp"
  142. android:layout_height="match_parent"
  143. android:layout_weight="0.9"></Space>
  144. <TextView
  145. android:id="@+id/popupwindow_show_ranklist_my_name"
  146. android:layout_width="0dp"
  147. android:layout_height="match_parent"
  148. android:layout_weight="4.2"
  149. android:gravity="center|left"
  150. android:text="昵称"
  151. android:textColor="#8D4C05"
  152. android:textSize="22dp"></TextView>
  153. <Space
  154. android:layout_width="0dp"
  155. android:layout_height="match_parent"
  156. android:layout_weight="1"></Space>
  157. <TextView
  158. android:id="@+id/popupwindow_show_ranklist_my_thumb"
  159. android:layout_width="0dp"
  160. android:layout_height="match_parent"
  161. android:layout_weight="1"
  162. android:gravity="center"
  163. android:text="点赞"
  164. android:textColor="#8D4C05"
  165. android:textSize="22dp"></TextView>
  166. <TextView
  167. android:id="@+id/popupwindow_show_ranklist_my_collection"
  168. android:layout_width="0dp"
  169. android:layout_height="match_parent"
  170. android:layout_weight="1"
  171. android:gravity="center"
  172. android:text="收藏"
  173. android:textColor="#8D4C05"
  174. android:textSize="22dp"></TextView>
  175. <TextView
  176. android:id="@+id/popupwindow_show_ranklist_my_score"
  177. android:layout_width="0dp"
  178. android:layout_height="match_parent"
  179. android:layout_weight="1"
  180. android:gravity="center"
  181. android:text="成绩"
  182. android:textColor="#8D4C05"
  183. android:textSize="22dp"></TextView>
  184. <Space
  185. android:layout_width="0dp"
  186. android:layout_height="match_parent"
  187. android:layout_weight="0.2"></Space>
  188. </LinearLayout>
  189. </FrameLayout>
  190. </LinearLayout>
  191. <ImageView
  192. android:id="@+id/popupwindow_ranklist_recyclerview_layout_nolist"
  193. android:layout_width="wrap_content"
  194. android:layout_height="wrap_content"
  195. android:layout_gravity="center"
  196. android:scaleX="0.7"
  197. android:scaleY="0.7"
  198. android:src="@drawable/ranklist_no_list"
  199. android:visibility="gone"></ImageView>
  200. </com.edufound.reader.cusview.RoundFrameLayout>
  201. </androidx.constraintlayout.widget.ConstraintLayout>
  202. </FrameLayout>
  203. <ImageView
  204. android:id="@+id/popupwindow_ranklist_back"
  205. android:layout_width="77dp"
  206. android:layout_height="77dp"
  207. android:layout_marginLeft="32dp"
  208. android:layout_marginTop="24dp"
  209. android:src="@drawable/main_back"
  210. app:layout_constraintStart_toStartOf="parent"
  211. app:layout_constraintTop_toTopOf="@+id/background"></ImageView>
  212. </androidx.constraintlayout.widget.ConstraintLayout>
  213. </FrameLayout>