content_main.xml
3.75 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/img_header_menu_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginStart="10dp"
android:contentDescription="@null"/>
<TextView
android:id="@+id/txt_header_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="false"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:layout_marginEnd="30dp"
android:layout_marginStart="30dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="设置智能幕布"
android:textAlignment="center"
android:textColor="@android:color/white"
android:textSize="30sp"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/txt_header_current"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="false"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:layout_marginEnd="30dp"
android:layout_marginStart="30dp"
android:gravity="center_vertical"
android:singleLine="true"
android:text="当前控制幕布未设置"
android:textAlignment="center"
android:textColor="@android:color/white"
android:textSize="22sp"/>
</RelativeLayout>
<ListView
android:id="@+id/lv_device"
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="0dp"/>
<LinearLayout android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="wrap_content">
<Button
android:layout_width="match_parent"
android:layout_height="46dp"
android:layout_marginTop="15dp"
android:text="up"
android:onClick="up"
android:textColor="@android:color/black"
android:textSize="18sp"/>
<Button
android:layout_width="match_parent"
android:layout_height="46dp"
android:layout_marginTop="15dp"
android:text="down"
android:onClick="down"
android:textColor="@android:color/black"
android:textSize="18sp"/>
</LinearLayout>
</LinearLayout>