dialog_host_source_refresh.xml 3.33 KB
Newer Older
1
2
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Daniel Wolf's avatar
Daniel Wolf committed
3
4
5
6
7
8
9
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:paddingLeft="@dimen/dialog_horizontal_margin"
        android:paddingRight="@dimen/dialog_horizontal_margin"
        android:paddingTop="@dimen/dialog_vertical_margin"
        android:paddingBottom="@dimen/dialog_vertical_margin"
        android:layout_height="match_parent">
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

    <CheckBox
            android:layout_width="wrap_content"
            android:text="@string/dialog_hostsourcerefresh_automatic_refresh"
            android:textColor="?android:attr/textColor"
            android:id="@+id/automaticRefresh"
            android:layout_height="wrap_content"/>

    <CheckBox
            android:layout_width="wrap_content"
            android:text="@string/dialog_hostsourcerefresh_wifi_only"
            android:textColor="?android:attr/textColor"
            android:id="@+id/refreshWifiOnly"
            android:layout_height="wrap_content"/>

25
    <LinearLayout
26
            android:layout_width="match_parent"
27
28
            android:id="@+id/refreshTimeWrap"
            android:orientation="vertical"
29
            android:layout_height="wrap_content">
30

31
        <TextView
32
                android:layout_width="wrap_content"
33
34
35
36
37
38
                android:layout_marginTop="12dp"
                android:text="@string/dialog_hostsourcerefresh_refresh_every"
                android:layout_height="wrap_content"/>

        <RelativeLayout
                android:layout_width="match_parent"
39
40
                android:layout_height="wrap_content">

41
42
43
44
            <com.google.android.material.textfield.TextInputLayout
                    android:layout_width="wrap_content"
                    android:id="@+id/timeAmountTil"
                    android:layout_alignParentTop="true"
45
                    android:minWidth="48dp"
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
                    android:layout_height="wrap_content">

                <com.google.android.material.textfield.TextInputEditText
                        android:layout_width="match_parent"
                        android:id="@+id/timeAmount"
                        android:inputType="numberSigned"
                        android:imeOptions="actionNext"
                        android:text="12"
                        android:maxLines="1"
                        android:layout_height="wrap_content"/>
            </com.google.android.material.textfield.TextInputLayout>

            <Spinner
                    android:layout_width="wrap_content"
                    android:layout_alignParentEnd="true"
                    android:layout_toEndOf="@id/timeAmountTil"
                    android:id="@+id/timeUnit"
                    android:layout_marginStart="8dp"
                    android:layout_alignBaseline="@id/timeAmountTil"
65
66
                    android:layout_height="wrap_content"/>

67
68
        </RelativeLayout>
    </LinearLayout>
69

70
71
72
73
74
75
76
77
78
    <Button
            android:layout_width="match_parent"
            android:background="@drawable/main_roundbuttons"
            android:id="@+id/refreshNow"
            android:layout_marginTop="16dp"
            android:text="@string/dialog_hostsourcerefresh_refresh_now"
            style="@style/Base.Widget.AppCompat.Button.Borderless.Colored"
            android:layout_height="wrap_content"/>

79
</LinearLayout>