-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity_main.xml
82 lines (72 loc) · 3.34 KB
/
activity_main.xml
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:weightSum="1"
android:background="@android:color/holo_red_light">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0.06" android:gravity="center" android:text="Calculator" android:textSize="36sp"
android:textColor="@android:color/background_light"
android:fontFamily="cursive" />
<Button
android:text="Subtract"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button3"
android:layout_weight="0.06"
android:background="@android:color/holo_red_dark"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:text="Divide"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button2"
android:layout_weight="0.06"
android:background="@android:color/transparent"
android:layout_above="@+id/button3"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:text="Multiply"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/button"
android:layout_weight="0.06"
android:background="@android:color/holo_red_dark"
android:layout_above="@+id/button2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button android:layout_height="wrap_content" android:layout_weight="0.06" android:layout_width="match_parent" android:text="Addition" android:id="@+id/btnsum"
android:background="@android:color/transparent"
android:layout_above="@+id/button"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"></Button>
<EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_weight="0.06" android:hint="Second Value" android:id="@+id/txtval2"
android:textColor="?attr/colorControlNormal"
android:layout_below="@+id/txtval1"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="85dp"></EditText>
<EditText android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_weight="0.06" android:hint="First Value" android:id="@+id/txtval1"
android:layout_marginTop="76dp"
android:layout_below="@+id/textView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<requestFocus></requestFocus>
</EditText>
<TextView
android:text="TextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/btnsum"
android:layout_centerHorizontal="true"
android:layout_marginBottom="53dp"
android:id="@+id/textView3"
android:textSize="36sp" />
</RelativeLayout>