summaryrefslogtreecommitdiffhomepage
path: root/ui/src/main/res/layout/config_naming_dialog_fragment.xml
blob: 60a904b64e0e99b652dc773295f82a7c45269207 (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
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <data>

        <import type="com.wireguard.android.widget.NameInputFilter" />
    </data>

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="16dp">

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/tunnel_name_text_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/tunnel_name_text"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/tunnel_name"
                android:inputType="textNoSuggestions|textVisiblePassword"
                app:filter="@{NameInputFilter.newInstance()}" />

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

    </FrameLayout>

</layout>