forked from APIJSON/APIJSON-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui_auto_activity.xml
More file actions
129 lines (111 loc) · 4.01 KB
/
ui_auto_activity.xml
File metadata and controls
129 lines (111 loc) · 4.01 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/rlRoot"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.UIAutoActivity">
<RelativeLayout
android:descendantFocusability="blocksDescendants"
android:id="@+id/vDispatchTouch"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#1000"
>
<ScrollView
android:id="@+id/svTouch"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tvTouch"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="30dp"
android:layout_alignParentRight="true"
android:text=""
/>
</ScrollView>
<Button
android:id="@+id/btnButton"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="120dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="BUTTON"
android:onClick="onClick"
/>
<TextView
android:id="@+id/tvButton"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:padding="10dp"
android:textStyle="bold"
android:textColor="@android:color/white"
android:background="@android:color/darker_gray"
android:foreground="?android:attr/selectableItemBackgroundBorderless"
/>
</RelativeLayout>
<LinearLayout
android:id="@+id/llTouch"
android:descendantFocusability="blocksDescendants"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
>
<View
android:descendantFocusability="blocksDescendants"
android:id="@+id/vTouch"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="#2000"
/>
<View
android:id="@+id/vTouch2"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/white" />
<LinearLayout
android:layout_alignParentBottom="true"
android:layout_height="45dp"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center"
>
<Button
android:id="@+id/tvUnitOrient"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:onClick="toRemote"
android:text="@string/remote"
/>
<Button
android:id="@+id/tvUnitStop"
android:layout_width="0dp"
android:layout_height="match_parent"
android:onClick="toLocal"
android:layout_weight="1"
android:text="@string/local"
/>
<Button
android:id="@+id/tvUnitStart"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/record"
android:onClick="record"
android:minWidth="60dp"
/>
</LinearLayout>
</RelativeLayout>