fragment_about.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="utf-8"?><!--启用深色模式之后,需要使用fitsSystemWindows来不让布局上滑-->
  2. <!--阴影效果android:background="?android:attr/listDivider"-->
  3. <!--<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/colorPrimary"
  7. android:orientation="vertical">
  8. </ScrollView>-->
  9. <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:background="@color/white_bg">
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="wrap_content"
  16. android:orientation="vertical"
  17. android:paddingTop="@dimen/margin_default"
  18. android:id="@+id/ll_about">
  19. <LinearLayout
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_marginBottom="@dimen/margin_s"
  23. android:gravity="center_vertical"
  24. android:orientation="horizontal"
  25. android:paddingStart="@dimen/margin_default"
  26. android:paddingEnd="@dimen/margin_default">
  27. <ImageView
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:src="@drawable/ic_launcher"
  31. android:tint="@color/black_theme"
  32. android:visibility="gone"/>
  33. <TextView
  34. android:id="@+id/tv_title"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="@string/app_name"
  38. android:textColor="@color/black_theme"
  39. android:textSize="@dimen/text_normal_p"
  40. android:textStyle="bold" />
  41. </LinearLayout>
  42. <LinearLayout
  43. android:id="@+id/ll_desc"
  44. android:layout_width="match_parent"
  45. android:layout_height="wrap_content"
  46. android:orientation="vertical">
  47. <TextView
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:paddingStart="@dimen/margin_default"
  51. android:paddingEnd="@dimen/margin_default"
  52. android:text="@string/about_attention"
  53. android:textColor="@color/red_droid"
  54. android:textSize="@dimen/text_normal"
  55. android:layout_marginTop="@dimen/margin_s"/>
  56. <TextView
  57. android:id="@+id/tv_desc"
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:paddingStart="@dimen/margin_default"
  61. android:paddingEnd="@dimen/margin_default"
  62. android:text="@string/about_description"
  63. android:textColor="@color/black_droid_text"
  64. android:textSize="@dimen/text_normal"
  65. android:layout_marginTop="@dimen/margin_s"/>
  66. </LinearLayout>
  67. <LinearLayout
  68. android:id="@+id/ll_email"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:orientation="horizontal"
  72. android:paddingStart="@dimen/margin_default"
  73. android:paddingEnd="@dimen/margin_default"
  74. android:layout_marginTop="@dimen/margin_s"
  75. android:gravity="center_vertical"
  76. android:visibility="gone">
  77. <TextView
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:text="@string/about_current_account"
  81. android:textColor="@color/black_droid_text"
  82. android:textSize="@dimen/text_normal" />
  83. <TextView
  84. android:id="@+id/tv_email"
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:textColor="@color/black_droid_text"
  88. android:textSize="@dimen/text_normal" />
  89. </LinearLayout>
  90. <TextView
  91. android:id="@+id/tv_active"
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:layout_marginTop="@dimen/margin_default"
  95. android:layout_marginStart="@dimen/margin_default"
  96. android:layout_marginEnd="@dimen/margin_default"
  97. android:text="@string/about_upgrade_now"
  98. android:textColor="@color/green_logo"
  99. android:background="?attr/selectableItemBackground"/>
  100. <TextView
  101. android:id="@+id/tv_update"
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. android:layout_marginStart="@dimen/margin_default"
  105. android:layout_marginEnd="@dimen/margin_default"
  106. android:layout_marginTop="@dimen/margin_default"
  107. android:text="@string/about_check_new"
  108. android:textColor="@color/green_logo"
  109. android:background="?attr/selectableItemBackground"/>
  110. <TextView
  111. android:id="@+id/tv_feedback"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:layout_marginStart="@dimen/margin_default"
  115. android:layout_marginEnd="@dimen/margin_default"
  116. android:layout_marginTop="@dimen/margin_default"
  117. android:text="@string/about_feedback"
  118. android:textColor="@color/green_logo"
  119. android:background="?attr/selectableItemBackground"/>
  120. <TextView
  121. android:id="@+id/tv_coupon"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_marginStart="@dimen/margin_default"
  125. android:layout_marginEnd="@dimen/margin_default"
  126. android:layout_marginTop="@dimen/margin_default"
  127. android:text="@string/about_coupon"
  128. android:textColor="@color/green_logo"
  129. android:background="?attr/selectableItemBackground"
  130. android:visibility="gone"/>
  131. <TextView
  132. android:id="@+id/tv_more"
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:layout_marginTop="@dimen/margin_default"
  136. android:layout_marginStart="@dimen/margin_default"
  137. android:layout_marginEnd="@dimen/margin_default"
  138. android:textColor="@color/green_logo"
  139. android:background="?attr/selectableItemBackground"
  140. android:visibility="gone"/>
  141. <Space
  142. android:layout_width="wrap_content"
  143. android:layout_height="0dp"
  144. android:layout_weight="1"/>
  145. <!--<include layout="@layout/view_divider" />-->
  146. <!--隐私政策、用户协议-->
  147. <TextView
  148. android:id="@+id/tv_protocol"
  149. android:layout_width="match_parent"
  150. android:layout_height="@dimen/height_sliding_tab"
  151. android:background="?attr/selectableItemBackground"
  152. android:gravity="center"
  153. android:text="@string/about_privacy"
  154. android:textColor="@color/black_title"
  155. android:textSize="@dimen/text_s"
  156. android:visibility="gone"/>
  157. </LinearLayout>
  158. </androidx.core.widget.NestedScrollView>