Linjiajia
2023-10-26 ecaf8069072e71db4bff94671e72764b211d6af1
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center">
    <LinearLayout
        android:layout_width="275dp"
        android:layout_height="wrap_content"
        android:background="@color/color_normal_background"
        android:orientation="vertical"
        >
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="新版本"
            android:textSize="@dimen/sp_24"
            android:textStyle="bold"
            android:textColor="#FF3560F4"
            android:layout_gravity="center"
            android:layout_marginTop="20dp"
            />
        <TextView
            android:id="@+id/tv_update_dialog_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="快来更新啦~"
            android:textSize="24sp"
            android:textStyle="bold"
            android:textColor="#FF3560F4"
            android:layout_gravity="center"
            android:layout_marginTop="10dp"
            />
        <TextView
            android:id="@+id/tv_update_dialog_content"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="修复修复"
            android:textSize="14sp"
            android:textColor="@color/black"
            android:layout_gravity="center"
            android:gravity="center"
            android:layout_marginTop="20dp"
            android:layout_marginHorizontal="30dp"
            />
        <androidx.cardview.widget.CardView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:layout_gravity="center"
            app:cardCornerRadius="10dp"
            app:cardBackgroundColor="@color/color_FFF08EBA_text_pink"
            >
            <TextView
                android:id="@+id/tv_update_dialog_confirm"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="立即更新"
                android:textSize="16sp"
                android:textStyle="bold"
                android:textColor="@color/white"
                android:gravity="center"
                android:paddingHorizontal="20dp"
                android:paddingVertical="3dp"
                />
        </androidx.cardview.widget.CardView>
 
 
        <RelativeLayout
            android:layout_marginVertical="@dimen/dp_24"
            android:id="@+id/layout_progress"
            android:layout_marginHorizontal="@dimen/dp_16"
            android:gravity="center_vertical"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
 
            <ProgressBar
                android:id="@+id/pb_download"
                style="@android:style/Widget.ProgressBar.Horizontal"
                android:layout_width="match_parent"
                android:layout_height="15dp"
                android:max="100"
                android:progressDrawable="@drawable/shape_gradient_update_progress"
                />
 
            <TextView
                android:layout_below="@+id/pb_download"
                android:textColor="#999999"
                android:text="0%"
                android:textSize="14sp"
                android:id="@+id/tv_pro"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
            <TextView
                android:layout_alignParentRight="true"
                android:layout_below="@+id/pb_download"
                android:textColor="#999999"
                android:text="0/100"
                android:textSize="14sp"
                android:id="@+id/tv_pro_percent"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
        </RelativeLayout>
 
 
    </LinearLayout>
 
</LinearLayout>