fragment_version_upgrade.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:gravity="center_horizontal"
  7. android:orientation="vertical">
  8. <ImageView
  9. android:layout_width="64dp"
  10. android:layout_height="64dp"
  11. android:layout_marginTop="50dp"
  12. android:src="@mipmap/icon" />
  13. <TextView
  14. android:id="@+id/version_upgrade_oldVersion_tv"
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:padding="10dp"
  18. android:textColor="#333333"
  19. android:textSize="16sp"
  20. tools:text="Version 1.0.0" />
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_marginLeft="16dp"
  25. android:layout_marginRight="16dp"
  26. android:orientation="horizontal"
  27. android:padding="16dp">
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:text="最新版本:"
  32. android:textColor="#666666"
  33. android:textSize="14sp" />
  34. <TextView
  35. android:id="@+id/version_upgrade_newVersion_tv"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:textColor="#333333"
  39. android:textSize="14sp"
  40. tools:text="V1.1.1" />
  41. </LinearLayout>
  42. <View
  43. style="@style/view_gray_line"
  44. android:layout_marginLeft="26dp"
  45. android:layout_marginRight="26dp"
  46. android:background="#cccccc" />
  47. <LinearLayout
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:layout_marginLeft="16dp"
  51. android:layout_marginRight="16dp"
  52. android:orientation="horizontal"
  53. android:padding="16dp">
  54. <TextView
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:text="更新内容:"
  58. android:textColor="#666666"
  59. android:textSize="14sp" />
  60. <TextView
  61. android:id="@+id/version_upgrade_msg_tv"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:lineSpacingExtra="4dp"
  65. android:maxHeight="240dp"
  66. android:textColor="#333333"
  67. android:textSize="14sp"
  68. tools:text="解决已知bug解决已知bug解决已知bug
  69. 解决已知bug解决已知bug解决已知bug解决
  70. 已知bug解决已知bug解决已知bug解决已知bug解决已知bug解决已知bug" />
  71. </LinearLayout>
  72. <View
  73. style="@style/view_gray_line"
  74. android:layout_marginLeft="26dp"
  75. android:layout_marginRight="26dp"
  76. android:background="#cccccc" />
  77. <View
  78. android:layout_width="match_parent"
  79. android:layout_height="0dp"
  80. android:layout_weight="1" />
  81. <Button
  82. android:id="@+id/version_upgrade_upgrade_btn"
  83. style="@style/ButtonStyle"
  84. android:layout_margin="32dp"
  85. android:visibility="visible"
  86. android:text="下载新版本 " />
  87. </LinearLayout>