dialog_update.xml 4.61 KB
Newer Older
gao.chao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
<?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"
    android:paddingLeft="20dp"
    android:paddingRight="20dp">

    <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"
            android:layout_marginBottom="@dimen/space_40px"
            android:layout_marginTop="@dimen/space_40px"
            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"
                android:padding="@dimen/space_30px" />

            <TextView
                android:id="@+id/pack_size"
                style="@style/txt_normal"
                android:layout_width="match_parent"
                android:gravity="left"
                android:paddingLeft="@dimen/space_30px" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginBottom="12dp"
                android:layout_marginLeft="@dimen/space_30px"
                android:layout_marginRight="@dimen/space_30px"
                android:layout_marginTop="30dp"
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="45dp"
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 61 62
                    android:textSize="@dimen/txt_size_36px" />

                <TextView
63 64
                    android:id="@+id/txt_browsers"
                    android:layout_width="match_parent"
gao.chao committed
65
                    android:layout_height="45dp"
66
                    android:layout_marginTop="@dimen/im_dp_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 71 72
                    android:textColor="@color/white"
                    android:textSize="@dimen/txt_size_36px" />

73 74 75 76 77 78 79 80 81 82 83
                <TextView
                    android:id="@+id/txt_cancel"
                    android:layout_width="match_parent"
                    android:layout_height="45dp"
                    android:layout_marginTop="@dimen/im_dp_10"
                    android:background="@drawable/bg_white_border_accent_rectangle"
                    android:gravity="center"
                    android:text="@string/cancel"
                    android:textColor="@color/colorAccent"
                    android:textSize="@dimen/txt_size_36px" />

gao.chao committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
            </LinearLayout>
        </LinearLayout>

        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="120dp"
            android:visibility="gone">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:layout_marginLeft="@dimen/space_30px"
                android:layout_marginRight="@dimen/space_30px"
                android:orientation="vertical">

                <ProgressBar
                    style="?android:attr/progressBarStyleHorizontal"
                    android:layout_width="match_parent"
                    android:layout_height="10dp"
                    android:max="100"
                    android:progress="50"
                    android:progressDrawable="@drawable/bg_progress_rount_border_accent" />

                <TextView
                    style="@style/txt_normal"
                    android:layout_marginTop="@dimen/space_20px"
                    android:text="60%"
                    android:textColor="@color/colorAccent" />
            </LinearLayout>
        </RelativeLayout>
    </LinearLayout>
</RelativeLayout>