|
@@ -1,47 +1,82 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:background="@android:color/white"
|
|
|
- android:padding="16dp">
|
|
|
-
|
|
|
- <android.support.v7.widget.AppCompatTextView
|
|
|
- android:id="@+id/title"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:background="@drawable/update_background">
|
|
|
+ <TableLayout
|
|
|
+ android:id="@+id/top"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="48dp"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:text="更新提示"
|
|
|
- android:textColor="@color/updateTitle"
|
|
|
- android:textSize="18sp" />
|
|
|
+ android:layout_height="84dp">
|
|
|
+ <android.support.v7.widget.AppCompatTextView
|
|
|
+ android:id="@+id/title"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:text="发现最新版本"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:textColor="@color/updateText"
|
|
|
+ android:textSize="17dp" />
|
|
|
|
|
|
- <android.support.v7.widget.AppCompatTextView
|
|
|
- android:id="@+id/content"
|
|
|
+ <android.support.v7.widget.AppCompatTextView
|
|
|
+ android:id="@+id/content"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="36dp"
|
|
|
+ android:textColor="@color/updateText"
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
+ android:text="检测到新版本v.1.0.2"
|
|
|
+ android:textSize="14dp"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:layout_below="@+id/title" />
|
|
|
+ </TableLayout>
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/line"
|
|
|
+ android:layout_below="@+id/top"
|
|
|
+ android:layout_marginTop="11dp"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textColor="@color/colorAccent"
|
|
|
- android:layout_below="@+id/title" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/ok"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_below="@id/content"
|
|
|
- android:textColor="@color/updateTitle"
|
|
|
- android:theme="@style/Theme.AppCompat.Light"
|
|
|
- android:text="@string/app_updater_download_now" />
|
|
|
-
|
|
|
- <Button
|
|
|
- android:id="@+id/cancel"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_alignBaseline="@+id/ok"
|
|
|
- android:layout_alignBottom="@+id/ok"
|
|
|
- android:layout_toLeftOf="@+id/ok"
|
|
|
- android:layout_toStartOf="@+id/ok"
|
|
|
- android:textColor="@color/updateTitle"
|
|
|
- android:theme="@style/Theme.AppCompat.Light"/>
|
|
|
+ android:layout_height="1dp"
|
|
|
+ android:background="#bbb"/>
|
|
|
+ <TableLayout
|
|
|
+ android:layout_below="@+id/line"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:gravity="center"
|
|
|
+ android:layout_height="44dp">
|
|
|
+ <TableRow>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/cancel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_alignBaseline="@+id/ok"
|
|
|
+ android:layout_alignBottom="@+id/ok"
|
|
|
+ android:layout_toLeftOf="@+id/ok"
|
|
|
+ android:layout_toStartOf="@+id/ok"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="@string/app_updater_download_later"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:textColor="@color/btnTextColor"
|
|
|
+ android:textSize="17dp"
|
|
|
+ android:theme="@style/Theme.AppCompat.Light"
|
|
|
+ android:background="@drawable/update_btn_left_background"/>
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#bbb"/>
|
|
|
+ <Button
|
|
|
+ android:id="@+id/ok"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_below="@id/content"
|
|
|
+ android:text="@string/app_updater_download_now"
|
|
|
+ android:textColor="@color/btnTextColor"
|
|
|
+ android:theme="@style/Theme.AppCompat.Light"
|
|
|
+ android:textAlignment="center"
|
|
|
+ android:textSize="17dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/update_btn_right_background"/>
|
|
|
+ </TableRow>
|
|
|
|
|
|
+ </TableLayout>
|
|
|
|
|
|
</RelativeLayout>
|