update_layout_tips.xml
2.5 KB
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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white">
<TextView
android:id="@+id/update_tips_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="温馨提示"
android:textColor="#333"
android:textSize="16sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/update_tips_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="当前检测到最新版本,是否更新?"
app:layout_constraintEnd_toEndOf="@+id/update_tips_title"
app:layout_constraintStart_toStartOf="@+id/update_tips_title"
app:layout_constraintTop_toBottomOf="@+id/update_tips_title" />
<LinearLayout
android:id="@+id/update_tips_line"
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_marginTop="30dp"
android:background="#f3f3f3"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@+id/update_tips_content"
tools:ignore="MissingConstraints" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal"
app:layout_constraintTop_toBottomOf="@+id/update_tips_line">
<TextView
android:id="@+id/update_tips_cancel"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/border_right"
android:gravity="center"
android:text="取消" />
<TextView
android:id="@+id/update_tips_ok"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:text="立即更新"
android:textColor="#206CB3" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>