/
activity_third.xml
69 lines (66 loc) · 2.5 KB
/
activity_third.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
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="#40FF6EB4"
android:layout_margin="5dp"
android:layout_height="match_parent"
tools:context="com.example.shivanii.assign1.third">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Multiplication"
android:textSize="45dp"
android:textAlignment="center"
android:background="#4000"
android:textColor="#FFF"
android:fontFamily="serif"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/num1"
android:hint="Number 1"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_marginStart="31dp"
android:layout_marginTop="115dp" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/num2"
android:hint="Number 2"
android:layout_alignBaseline="@+id/num1"
android:layout_alignBottom="@+id/num1"
android:layout_alignParentEnd="true"
android:layout_marginEnd="51dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Multiply"
android:onClick="mul"
android:layout_marginTop="54dp"
android:id="@+id/button4"
android:layout_below="@+id/num2"
android:layout_centerHorizontal="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/res2"
android:hint="Result"
android:textSize="40dp"
android:layout_marginTop="31dp"
android:layout_below="@+id/button4"
android:layout_centerHorizontal="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="->"
android:textSize="30dp"
android:layout_alignParentBottom="true"
android:onClick="next"
android:layout_alignStart="@+id/num2"
android:layout_marginStart="15dp"
android:layout_marginBottom="63dp" />
</RelativeLayout>