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

    <com.google.android.material.textfield.TextInputLayout
            style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

        <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/deviceName"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/gpodnetauth_device_name"
                android:lines="1"
                android:imeOptions="actionNext|flagNoFullscreen"/>

    </com.google.android.material.textfield.TextInputLayout>

    <Button
            android:id="@+id/createDeviceButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right|end"
            android:text="@string/gpodnetauth_create_device"/>

    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/AntennaPod.TextView.Heading"
        android:layout_marginTop="16dp"
        android:text="@string/gpodnetauth_existing_devices"/>

    <TextView
        android:id="@+id/deviceSelectError"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:textColor="@color/download_failed_red"
        android:textSize="@dimen/text_size_small"
        android:visibility="gone"
        tools:text="Error message"
        tools:background="@android:color/holo_green_dark" />

    <LinearLayout
        android:id="@+id/devicesContainer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" />

    <ProgressBar
        android:id="@+id/progbarCreateDevice"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/download_failed_red"
        android:visibility="gone" />

</LinearLayout>