-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathacitvity_main.xml
More file actions
78 lines (66 loc) · 2.71 KB
/
Copy pathacitvity_main.xml
File metadata and controls
78 lines (66 loc) · 2.71 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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/paddingBottomNormal"
android:paddingEnd="@dimen/paddingRightNormal"
android:paddingLeft="@dimen/paddingLeftNormal"
android:paddingRight="@dimen/paddingRightNormal"
android:paddingStart="@dimen/paddingLeftNormal"
android:paddingTop="@dimen/paddingTopNormal"
tools:context="com.example.android.justjava.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/marginBottomNormal"
android:text="@string/quantity"
android:textAllCaps="true" />
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:id="@+id/buttonPlus"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginBottom="@dimen/marginTopNormal"
android:layout_toRightOf="@id/quantity_text_view"
android:onClick="submitIncrement"
android:text="@string/plus" />
<TextView
android:id="@+id/quantity_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/buttonMinus"
android:padding="16dp"
android:text="@string/zero"
android:textColor="#000000" />
<Button
android:id="@+id/buttonMinus"
android:layout_width="48dp"
android:layout_height="48dp"
android:onClick="submitDecrement"
android:text="@string/minus" />
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/marginBottomNormal"
android:layout_marginTop="@dimen/marginTopNormal"
android:text="@string/price"
android:textAllCaps="true" />
<TextView
android:id="@+id/price_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/money"
android:textColor="#000000" />
<Button
android:layout_width="70dp"
android:layout_height="40dp"
android:layout_marginTop="@dimen/marginTopNormal"
android:onClick="submitOrder"
android:text="@string/order" />
</LinearLayout>