aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/res/layout/fragment_screen_home_list.xml
blob: a688366f28299a8cc600d52af08d8334c951118c (plain) (blame)
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="Converter"
        android:textSize="30sp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:layout_marginBottom="20dp">

        <Spinner
            android:id="@+id/spinner"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1" />

        <EditText
            android:id="@+id/amount_input"
            android:text="1.0000"
            android:inputType="number"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1" />
    </LinearLayout>
<!--    <com.google.android.material.button.MaterialButton-->
    <TextView
        android:layout_width="wrap_content"
        android:background="@color/teal_700"
        android:text="Add current currency to list"
        android:id="@+id/btn_add"
        android:textSize="25sp"
        android:paddingLeft="7dp"
        android:paddingRight="7dp"
        android:layout_marginBottom="15dp"
        android:layout_gravity="center"
        android:layout_height="wrap_content"/>

    <androidx.recyclerview.widget.RecyclerView xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/list"
        android:name="com.jopek.taupngamoni.ScreenHome"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginLeft="16dp"
        android:layout_marginRight="16dp"
        android:layout_weight="1"
        app:layoutManager="LinearLayoutManager"
        tools:context=".HomeFragment"
        tools:listitem="@layout/fragment_screen_home" />
</LinearLayout>