c746a821fd01782ed8586ad8e8f30c5d449d7b51.svn-base 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:background="#01000000"
  8. android:gravity="center">
  9. <LinearLayout
  10. android:layout_width="300dp"
  11. android:layout_height="wrap_content"
  12. android:orientation="vertical">
  13. <ImageView
  14. android:layout_width="match_parent"
  15. android:layout_height="160dp"
  16. android:scaleType="fitXY"
  17. android:src="@mipmap/update_app_top_bg" />
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:background="@drawable/bg_dialog_update_bottom"
  22. android:orientation="vertical">
  23. <LinearLayout
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_marginLeft="20dp"
  27. android:layout_marginRight="20dp"
  28. android:orientation="horizontal">
  29. <TextView
  30. android:id="@+id/tv_dialog_update_name"
  31. android:layout_width="0dp"
  32. android:layout_height="wrap_content"
  33. android:layout_weight="1"
  34. android:textColor="#333333"
  35. android:textSize="14sp"
  36. tools:text="版本号" />
  37. <TextView
  38. android:id="@+id/tv_dialog_update_size"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:textColor="#666666"
  42. android:textSize="13sp"
  43. tools:text="大小" />
  44. </LinearLayout>
  45. <!--这个地方需要设置可以滚动-->
  46. <android.support.v4.widget.NestedScrollView
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:overScrollMode="never"
  50. android:paddingTop="5dp"
  51. android:paddingBottom="5dp"
  52. android:scrollbars="none">
  53. <TextView
  54. android:id="@+id/tv_dialog_update_content"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginLeft="20dp"
  58. android:layout_marginTop="@dimen/space_20"
  59. android:layout_marginRight="20dp"
  60. android:lineSpacingExtra="5dp"
  61. android:maxHeight="100dp"
  62. android:minHeight="100dp"
  63. android:textColor="#666666"
  64. android:textSize="13sp"
  65. tools:text="更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n更新内容\n" />
  66. </android.support.v4.widget.NestedScrollView>
  67. <com.hjq.widget.NumberProgressBar
  68. android:id="@+id/pb_dialog_update_progress"
  69. android:layout_width="match_parent"
  70. android:layout_height="wrap_content"
  71. android:layout_marginLeft="20dp"
  72. android:layout_marginTop="15dp"
  73. android:layout_marginRight="20dp"
  74. android:visibility="gone"
  75. app:pb_reachedColor="#e94339"
  76. app:pb_reachedHeight="4dp"
  77. app:pb_textColor="#e94339"
  78. app:pb_textSize="@dimen/font_size_24px"
  79. app:pb_unreachedColor="#CCCCCC"
  80. app:pb_unreachedHeight="3dp" />
  81. <TextView
  82. android:id="@+id/tv_dialog_update_update"
  83. android:layout_width="match_parent"
  84. android:layout_height="wrap_content"
  85. android:layout_marginLeft="15dp"
  86. android:layout_marginTop="15dp"
  87. android:layout_marginRight="15dp"
  88. android:layout_marginBottom="15dp"
  89. android:background="@drawable/bg_dialog_update_button"
  90. android:focusable="true"
  91. android:gravity="center"
  92. android:paddingTop="10dp"
  93. android:paddingBottom="10dp"
  94. android:text="@string/dialog_update_button"
  95. android:textColor="@color/white"
  96. android:textSize="14sp" />
  97. </LinearLayout>
  98. <LinearLayout
  99. android:id="@+id/ll_dialog_update_cancel"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_gravity="center_horizontal"
  103. android:gravity="center_horizontal"
  104. android:orientation="vertical">
  105. <View
  106. android:layout_width="2dp"
  107. android:layout_height="50dp"
  108. android:background="#d8d8d8" />
  109. <ImageView
  110. android:id="@+id/iv_dialog_update_close"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:src="@mipmap/update_app_close" />
  114. </LinearLayout>
  115. </LinearLayout>
  116. </LinearLayout>