dialog_update.xml 4.67 KB
Newer Older
gao.chao committed
1 2 3 4 5
<?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="wrap_content"
    android:background="@android:color/transparent"
gao.chao committed
6 7
    android:paddingLeft="@dimen/size_20"
    android:paddingRight="@dimen/size_20">
gao.chao committed
8 9 10 11 12 13 14 15 16 17 18

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_rectangle_white_radius"
        android:gravity="center_horizontal"
        android:orientation="vertical">

        <TextView
            android:id="@+id/txt_title"
            style="@style/txt_big"
gao.chao committed
19 20
            android:layout_marginBottom="@dimen/size_20"
            android:layout_marginTop="@dimen/size_20"
gao.chao committed
21 22 23 24 25 26 27 28 29 30 31 32 33
            android:text="@string/app_version_update" />

        <View style="@style/line_h" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:visibility="visible">

            <TextView
                android:id="@+id/pack_content"
                style="@style/txt_normal"
gao.chao committed
34
                android:padding="@dimen/size_15" />
gao.chao committed
35 36 37 38 39 40

            <TextView
                android:id="@+id/pack_size"
                style="@style/txt_normal"
                android:layout_width="match_parent"
                android:gravity="left"
gao.chao committed
41
                android:paddingLeft="@dimen/size_15" />
gao.chao committed
42 43 44 45

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
gao.chao committed
46 47 48 49
                android:layout_marginBottom="@dimen/size_12"
                android:layout_marginLeft="@dimen/size_15"
                android:layout_marginRight="@dimen/size_15"
                android:layout_marginTop="@dimen/size_30"
50
                android:orientation="vertical">
gao.chao committed
51 52

                <TextView
53 54
                    android:id="@+id/txt_sure"
                    android:layout_width="match_parent"
gao.chao committed
55
                    android:layout_height="@dimen/size_45"
56
                    android:background="@drawable/btn_accont_grey_radius"
gao.chao committed
57
                    android:gravity="center"
58 59
                    android:text="@string/sure"
                    android:textColor="@color/white"
gao.chao committed
60
                    android:textSize="@dimen/text_size_16" />
gao.chao committed
61 62

                <TextView
63 64
                    android:id="@+id/txt_browsers"
                    android:layout_width="match_parent"
gao.chao committed
65 66
                    android:layout_height="@dimen/size_45"
                    android:layout_marginTop="@dimen/size_10"
gao.chao committed
67 68
                    android:background="@drawable/btn_accont_grey_radius"
                    android:gravity="center"
69
                    android:text="@string/go_browsers"
gao.chao committed
70
                    android:textColor="@color/white"
gao.chao committed
71
                    android:textSize="@dimen/text_size_16" />
gao.chao committed
72

73 74 75
                <TextView
                    android:id="@+id/txt_cancel"
                    android:layout_width="match_parent"
gao.chao committed
76 77
                    android:layout_height="@dimen/size_45"
                    android:layout_marginTop="@dimen/size_10"
78 79 80 81
                    android:background="@drawable/bg_white_border_accent_rectangle"
                    android:gravity="center"
                    android:text="@string/cancel"
                    android:textColor="@color/colorAccent"
gao.chao committed
82
                    android:textSize="@dimen/text_size_16" />
83

gao.chao committed
84 85 86 87 88
            </LinearLayout>
        </LinearLayout>

        <RelativeLayout
            android:layout_width="match_parent"
gao.chao committed
89
            android:layout_height="@dimen/size_120"
gao.chao committed
90 91 92 93 94 95
            android:visibility="gone">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
gao.chao committed
96 97
                android:layout_marginLeft="@dimen/size_15"
                android:layout_marginRight="@dimen/size_15"
gao.chao committed
98 99 100 101 102
                android:orientation="vertical">

                <ProgressBar
                    style="?android:attr/progressBarStyleHorizontal"
                    android:layout_width="match_parent"
gao.chao committed
103
                    android:layout_height="@dimen/size_10"
gao.chao committed
104 105 106 107 108 109
                    android:max="100"
                    android:progress="50"
                    android:progressDrawable="@drawable/bg_progress_rount_border_accent" />

                <TextView
                    style="@style/txt_normal"
gao.chao committed
110
                    android:layout_marginTop="@dimen/size_10"
gao.chao committed
111 112 113 114 115 116
                    android:text="60%"
                    android:textColor="@color/colorAccent" />
            </LinearLayout>
        </RelativeLayout>
    </LinearLayout>
</RelativeLayout>