-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactivity_currency_converter.xml
78 lines (73 loc) · 2.96 KB
/
activity_currency_converter.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
<?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"
tools:context="com.arifulislam.tourguidepro.currency.CurrencyConverterActivity">
<TextView
android:id="@+id/title_currency"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Currency Converter"
android:textSize="24sp"
android:gravity="center_horizontal"
android:layout_alignParentTop="true"
android:background="@drawable/shape"
/>
<EditText
android:layout_marginTop="100dp"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:hint="Enter amount"
android:id="@+id/from_money_edit"
android:layout_alignParentLeft="true"
android:layout_below="@+id/title_currency"/>
<TextView
android:layout_marginTop="100dp"
android:id="@+id/from_money_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bangladeshi Taka"
android:textStyle="bold"
android:textColor="@android:color/black"
android:textSize="22sp"
android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/from_money_edit"
android:layout_below="@+id/title_currency"/>
<TextView
android:id="@+id/to_tv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="TO"
android:layout_below="@+id/from_money_edit"
android:gravity="center_horizontal"
android:layout_marginTop="30dp" />
<EditText
android:layout_marginTop="16dp"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:hint="Resultant amount"
android:id="@+id/to_money_edit"
android:layout_alignParentLeft="true"
android:layout_below="@+id/to_tv"/>
<Spinner
android:id="@+id/to_money_spinner"
android:layout_marginTop="16dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:entries="@array/countries_money"
android:layout_toRightOf="@+id/to_money_edit"
android:layout_alignParentRight="true"
android:layout_below="@+id/to_tv"/>
<Button
android:id="@+id/convert_money_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="convert"
android:layout_gravity="center_horizontal"
android:layout_marginTop="50dp"
android:background="@drawable/shape_button"
android:layout_below="@+id/to_money_edit"
/>
</RelativeLayout>