forked from bmeike/ProgrammingAndroidExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.xml
More file actions
65 lines (58 loc) · 2.02 KB
/
main.xml
File metadata and controls
65 lines (58 loc) · 2.02 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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:orientation="vertical"
android:gravity="center_horizontal"
android:background="@color/lt_grey"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false">
<com.oreilly.demo.android.pa.uidemo.view.DotView
android:id="@+id/dots"
android:focusableInTouchMode="true"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@color/white"
/>
<LinearLayout
android:orientation="horizontal"
android:background="@color/grey"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/text1"
android:text="@string/defaultText"
android:focusable="false"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"/>
<EditText
android:id="@+id/text2"
android:text="@string/defaultText"
android:focusable="false"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:background="@color/dk_grey"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/button1"
android:text="@string/labelRed"
android:textColor="@color/red"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"/>
<Button
android:id="@+id/button2"
android:text="@string/labelGreen"
android:textColor="@color/green"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>