-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity_main.xml
94 lines (84 loc) · 3.47 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
83
84
85
86
87
88
89
90
91
92
93
94
<?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:layout_height="match_parent"
android:padding="10dp">
<ScrollView
android:layout_above="@id/Options"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:id="@+id/SourceLang"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="enter text"
android:minHeight="60dp"
android:gravity="top"
android:textSize="25dp">
</EditText>
<TextView
android:id="@+id/TranslatedLang"
android:layout_marginTop="10dp"
android:textSize="25sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="">
</TextView>
</LinearLayout>
</ScrollView>
<LinearLayout
android:id="@+id/Options"
android:gravity="center"
android:layout_above="@id/translatebtn"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Spinner
android:id="@+id/sourcelangchoice"
app:cornerRadius="25dp"
android:layout_weight="1"
android:minHeight="48dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:textColor="@color/white"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:padding="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</Spinner>
<ImageView
android:src="@drawable/ic_baseline_arrow_forward_24"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</ImageView>
<Spinner
android:id="@+id/translangchoice"
android:layout_width="wrap_content"
android:layout_marginStart="8dp"
android:minHeight="48dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="8dp"
android:textColor="@color/white"
android:padding="10dp"
android:layout_weight="1"
app:cornerRadius="25dp"
android:layout_height="wrap_content">
</Spinner>
</LinearLayout>
<com.google.android.material.button.MaterialButton
android:id="@+id/translatebtn"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:text="TRANSLATE"
app:cornerRadius="50dp"
android:layout_height="wrap_content">
</com.google.android.material.button.MaterialButton>
</RelativeLayout>