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
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<data>
<variable
name="vm"
type="com.ypsx.yppos.viewmodel.state.MessageTipsViewModel" />
<variable
name="click"
type="com.ypsx.yppos.ui.popup.MessageTipsPopupWindow.ProxyClick" />
</data>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_dialog"
android:orientation="vertical">
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="39dp"
android:gravity="center_horizontal"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:text="@{vm.content}"
android:textColor="@color/black_333"
android:textSize="16sp"
tools:text="是否取消当前商品" />
<View
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:background="#eeeeee" />
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/tv_Sure"
android:layout_width="match_parent"
android:layout_height="50dp"
android:gravity="center"
android:onClick="@{()->click.know()}"
android:text="@{vm.sure}"
android:textColor="#A14EFF"
android:textSize="17sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
</layout>