|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | | - xmlns:tools="http://schemas.android.com/tools" |
5 | | - android:layout_width="match_parent" |
6 | | - android:layout_height="wrap_content" |
7 | | - android:layout_marginTop="4dp" |
8 | | - android:background="@color/bihe0832_common_toast_background_color" |
9 | | - android:gravity="center" |
10 | | - android:orientation="vertical" |
11 | | - android:paddingLeft="16dp" |
12 | | - android:paddingTop="8dp" |
13 | | - android:paddingRight="16dp" |
14 | | - android:paddingBottom="8dp"> |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + xmlns:tools="http://schemas.android.com/tools" |
| 5 | + android:layout_width="match_parent" |
| 6 | + android:layout_height="wrap_content" |
| 7 | + android:layout_marginTop="4dp" |
| 8 | + android:background="@color/bihe0832_common_toast_background_color" |
| 9 | + android:gravity="center" |
| 10 | + android:orientation="vertical" |
| 11 | + android:paddingLeft="16dp" |
| 12 | + android:paddingTop="8dp" |
| 13 | + android:id="@+id/app_layout" |
| 14 | + android:paddingRight="16dp" |
| 15 | + android:paddingBottom="8dp"> |
15 | 16 |
|
16 | 17 | <ImageView |
17 | | - android:id="@+id/app_icon" |
18 | | - android:layout_width="64dp" |
19 | | - android:layout_height="64dp" |
20 | | - app:layout_constraintBottom_toTopOf="@+id/uninstall" |
21 | | - app:layout_constraintStart_toStartOf="parent" |
22 | | - app:layout_constraintTop_toTopOf="parent" |
23 | | - tools:src="@mipmap/icon" /> |
| 18 | + android:id="@+id/app_icon" |
| 19 | + android:layout_width="64dp" |
| 20 | + android:layout_height="64dp" |
| 21 | + app:layout_constraintBottom_toTopOf="@+id/uninstall" |
| 22 | + app:layout_constraintStart_toStartOf="parent" |
| 23 | + app:layout_constraintTop_toTopOf="parent" |
| 24 | + tools:src="@mipmap/icon" /> |
24 | 25 |
|
25 | 26 | <TextView |
26 | | - android:id="@+id/uninstall" |
27 | | - android:layout_width="wrap_content" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:ellipsize="end" |
30 | | - android:text="卸载" |
31 | | - android:background="@drawable/card_apk_corner" |
32 | | - android:textSize="12dp" |
33 | | - android:textStyle="bold" |
34 | | - android:layout_marginTop="8dp" |
35 | | - app:layout_constraintBottom_toBottomOf="parent" |
36 | | - app:layout_constraintStart_toStartOf="@+id/app_icon" |
37 | | - app:layout_constraintEnd_toEndOf="@+id/app_icon" |
38 | | - app:layout_constraintTop_toBottomOf="@+id/app_icon" /> |
| 27 | + android:id="@+id/uninstall" |
| 28 | + android:layout_width="wrap_content" |
| 29 | + android:layout_height="wrap_content" |
| 30 | + android:ellipsize="end" |
| 31 | + android:text="卸载" |
| 32 | + android:background="@drawable/card_apk_corner" |
| 33 | + android:textSize="12dp" |
| 34 | + android:textStyle="bold" |
| 35 | + android:layout_marginTop="8dp" |
| 36 | + app:layout_constraintBottom_toBottomOf="parent" |
| 37 | + app:layout_constraintStart_toStartOf="@+id/app_icon" |
| 38 | + app:layout_constraintEnd_toEndOf="@+id/app_icon" |
| 39 | + app:layout_constraintTop_toBottomOf="@+id/app_icon" /> |
39 | 40 |
|
40 | 41 | <TextView |
41 | | - android:id="@+id/app_name" |
42 | | - android:layout_width="wrap_content" |
43 | | - android:layout_height="wrap_content" |
44 | | - android:layout_marginLeft="16dp" |
45 | | - android:ellipsize="end" |
46 | | - android:singleLine="true" |
47 | | - android:textSize="16dp" |
48 | | - android:textStyle="bold" |
49 | | - app:layout_constraintStart_toEndOf="@+id/app_icon" |
50 | | - app:layout_constraintTop_toTopOf="parent" |
51 | | - tools:text="王者荣耀" /> |
| 42 | + android:id="@+id/app_name" |
| 43 | + android:layout_width="wrap_content" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:layout_marginLeft="16dp" |
| 46 | + android:ellipsize="end" |
| 47 | + android:singleLine="true" |
| 48 | + android:textSize="16dp" |
| 49 | + android:textStyle="bold" |
| 50 | + app:layout_constraintStart_toEndOf="@+id/app_icon" |
| 51 | + app:layout_constraintTop_toTopOf="parent" |
| 52 | + tools:text="王者荣耀" /> |
52 | 53 |
|
53 | 54 | <TextView |
54 | | - android:id="@+id/app_version" |
55 | | - android:layout_width="0dp" |
56 | | - android:layout_height="wrap_content" |
57 | | - android:layout_marginStart="5dp" |
58 | | - android:layout_marginLeft="8dp" |
59 | | - android:layout_marginEnd="5dp" |
60 | | - android:layout_marginRight="8dp" |
61 | | - android:ellipsize="end" |
62 | | - android:singleLine="true" |
63 | | - android:textSize="12dp" |
64 | | - app:layout_constraintBaseline_toBaselineOf="@+id/app_name" |
65 | | - app:layout_constraintEnd_toEndOf="parent" |
66 | | - app:layout_constraintStart_toEndOf="@+id/app_name" |
67 | | - tools:text="版本号:1.1.1.1" /> |
| 55 | + android:id="@+id/app_version" |
| 56 | + android:layout_width="0dp" |
| 57 | + android:layout_height="wrap_content" |
| 58 | + android:layout_marginStart="5dp" |
| 59 | + android:layout_marginLeft="8dp" |
| 60 | + android:layout_marginEnd="5dp" |
| 61 | + android:layout_marginRight="8dp" |
| 62 | + android:ellipsize="end" |
| 63 | + android:singleLine="true" |
| 64 | + android:textSize="12dp" |
| 65 | + app:layout_constraintBaseline_toBaselineOf="@+id/app_name" |
| 66 | + app:layout_constraintEnd_toEndOf="parent" |
| 67 | + app:layout_constraintStart_toEndOf="@+id/app_name" |
| 68 | + tools:text="版本号:1.1.1.1" /> |
68 | 69 |
|
69 | 70 | <TextView |
70 | | - android:id="@+id/app_package" |
71 | | - android:layout_width="0dp" |
72 | | - android:layout_height="wrap_content" |
73 | | - android:layout_marginTop="4dp" |
74 | | - android:ellipsize="end" |
75 | | - android:singleLine="true" |
76 | | - android:textSize="12dp" |
77 | | - app:layout_constraintEnd_toEndOf="@+id/app_version" |
78 | | - app:layout_constraintStart_toStartOf="@+id/app_name" |
79 | | - app:layout_constraintTop_toBottomOf="@+id/app_name" |
80 | | - tools:text="包名:com.bihe0832.aaa" /> |
| 71 | + android:id="@+id/app_package" |
| 72 | + android:layout_width="0dp" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + android:layout_marginTop="4dp" |
| 75 | + android:ellipsize="end" |
| 76 | + android:singleLine="true" |
| 77 | + android:textSize="12dp" |
| 78 | + app:layout_constraintEnd_toEndOf="@+id/app_version" |
| 79 | + app:layout_constraintStart_toStartOf="@+id/app_name" |
| 80 | + app:layout_constraintTop_toBottomOf="@+id/app_name" |
| 81 | + tools:text="包名:com.bihe0832.aaa" /> |
81 | 82 |
|
82 | 83 | <TextView |
83 | | - android:id="@+id/app_install" |
84 | | - android:layout_width="0dp" |
85 | | - android:layout_height="wrap_content" |
86 | | - android:layout_marginTop="4dp" |
87 | | - android:ellipsize="end" |
88 | | - android:singleLine="true" |
89 | | - android:textSize="12dp" |
90 | | - app:layout_constraintEnd_toEndOf="@+id/app_version" |
91 | | - app:layout_constraintStart_toStartOf="@+id/app_name" |
92 | | - app:layout_constraintTop_toBottomOf="@+id/app_package" |
93 | | - tools:text="安装:2020年9月15日" /> |
| 84 | + android:id="@+id/app_install" |
| 85 | + android:layout_width="0dp" |
| 86 | + android:layout_height="wrap_content" |
| 87 | + android:layout_marginTop="4dp" |
| 88 | + android:ellipsize="end" |
| 89 | + android:singleLine="true" |
| 90 | + android:textSize="12dp" |
| 91 | + app:layout_constraintEnd_toEndOf="@+id/app_version" |
| 92 | + app:layout_constraintStart_toStartOf="@+id/app_name" |
| 93 | + app:layout_constraintTop_toBottomOf="@+id/app_package" |
| 94 | + tools:text="安装:2020年9月15日" /> |
94 | 95 |
|
95 | 96 | <TextView |
96 | | - android:id="@+id/app_update" |
97 | | - android:layout_width="0dp" |
98 | | - android:layout_height="wrap_content" |
99 | | - android:layout_marginTop="4dp" |
100 | | - android:ellipsize="end" |
101 | | - android:singleLine="true" |
102 | | - android:textSize="12dp" |
103 | | - app:layout_constraintEnd_toEndOf="@+id/app_version" |
104 | | - app:layout_constraintStart_toStartOf="@+id/app_name" |
105 | | - app:layout_constraintTop_toBottomOf="@+id/app_install" |
106 | | - tools:text="最后更新:2020年9月15日" /> |
| 97 | + android:id="@+id/app_update" |
| 98 | + android:layout_width="0dp" |
| 99 | + android:layout_height="wrap_content" |
| 100 | + android:layout_marginTop="4dp" |
| 101 | + android:ellipsize="end" |
| 102 | + android:singleLine="true" |
| 103 | + android:textSize="12dp" |
| 104 | + app:layout_constraintEnd_toEndOf="@+id/app_version" |
| 105 | + app:layout_constraintStart_toStartOf="@+id/app_name" |
| 106 | + app:layout_constraintTop_toBottomOf="@+id/app_install" |
| 107 | + tools:text="最后更新:2020年9月15日" /> |
107 | 108 |
|
108 | 109 | <TextView |
109 | | - android:id="@+id/app_md5" |
110 | | - android:layout_width="0dp" |
111 | | - android:layout_height="wrap_content" |
112 | | - android:layout_marginTop="4dp" |
113 | | - android:ellipsize="end" |
114 | | - android:singleLine="true" |
115 | | - android:textSize="12dp" |
116 | | - app:layout_constraintEnd_toEndOf="@+id/app_version" |
117 | | - app:layout_constraintStart_toStartOf="@+id/app_name" |
118 | | - app:layout_constraintTop_toBottomOf="@+id/app_update" |
119 | | - tools:text="安装包MD5:f7312bf1113af189cba98bbddcd4affe" /> |
| 110 | + android:id="@+id/app_md5" |
| 111 | + android:layout_width="0dp" |
| 112 | + android:layout_height="wrap_content" |
| 113 | + android:layout_marginTop="4dp" |
| 114 | + android:ellipsize="end" |
| 115 | + android:singleLine="true" |
| 116 | + android:textSize="12dp" |
| 117 | + app:layout_constraintEnd_toEndOf="@+id/app_version" |
| 118 | + app:layout_constraintStart_toStartOf="@+id/app_name" |
| 119 | + app:layout_constraintTop_toBottomOf="@+id/app_update" |
| 120 | + tools:text="安装包MD5:f7312bf1113af189cba98bbddcd4affe" /> |
120 | 121 |
|
121 | 122 | <TextView |
122 | | - android:id="@+id/signature_md5" |
123 | | - android:layout_width="0dp" |
124 | | - android:layout_height="wrap_content" |
125 | | - android:layout_marginTop="4dp" |
126 | | - android:ellipsize="end" |
127 | | - android:singleLine="true" |
128 | | - android:textSize="12dp" |
129 | | - app:layout_constraintEnd_toEndOf="@+id/app_version" |
130 | | - app:layout_constraintStart_toStartOf="@+id/app_name" |
131 | | - app:layout_constraintTop_toBottomOf="@+id/app_md5" |
132 | | - tools:text="签名MD5:f7312bf1113af189cba98bbddcd4affe" /> |
133 | | - |
| 123 | + android:id="@+id/signature_md5" |
| 124 | + android:layout_width="0dp" |
| 125 | + android:layout_height="wrap_content" |
| 126 | + android:layout_marginTop="4dp" |
| 127 | + android:ellipsize="end" |
| 128 | + android:singleLine="true" |
| 129 | + android:textSize="12dp" |
| 130 | + app:layout_constraintEnd_toEndOf="@+id/app_version" |
| 131 | + app:layout_constraintStart_toStartOf="@+id/app_name" |
| 132 | + app:layout_constraintTop_toBottomOf="@+id/app_md5" |
| 133 | + tools:text="签名MD5:f7312bf1113af189cba98bbddcd4affe" /> |
134 | 134 |
|
135 | 135 |
|
136 | 136 | </android.support.constraint.ConstraintLayout> |
0 commit comments