aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/configure_tools_dialog_network_join.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/configure_tools_dialog_network_join.xml')
-rw-r--r--app/src/main/res/layout/configure_tools_dialog_network_join.xml78
1 files changed, 78 insertions, 0 deletions
diff --git a/app/src/main/res/layout/configure_tools_dialog_network_join.xml b/app/src/main/res/layout/configure_tools_dialog_network_join.xml
new file mode 100644
index 0000000..9171284
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_dialog_network_join.xml
@@ -0,0 +1,78 @@
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4 * Tinc App, an Android binding and user interface for the tinc mesh VPN daemon
5 * Copyright (C) 2017-2018 Pacien TRAN-GIRARD
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19-->
20
21<layout xmlns:android="http://schemas.android.com/apk/res/android">
22
23 <data>
24
25 <variable
26 name="scanAction"
27 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
28
29 </data>
30
31 <LinearLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:orientation="vertical"
35 android:paddingBottom="@dimen/dialog_vertical_margin"
36 android:paddingLeft="@dimen/dialog_horizontal_margin"
37 android:paddingRight="@dimen/dialog_horizontal_margin"
38 android:paddingTop="@dimen/dialog_vertical_margin">
39
40 <EditText
41 android:id="@+id/net_name"
42 android:layout_width="match_parent"
43 android:layout_height="wrap_content"
44 android:hint="@string/configure_tools_generate_config_net_name_hint"
45 android:inputType="text"/>
46
47 <LinearLayout
48 android:layout_width="match_parent"
49 android:layout_height="match_parent"
50 android:orientation="horizontal">
51
52 <EditText
53 android:id="@+id/invitation_url"
54 android:layout_width="0dp"
55 android:layout_height="wrap_content"
56 android:layout_weight="1"
57 android:hint="@string/configure_tools_join_network_field_invitation_url_hint"
58 android:inputType="textUri"/>
59
60 <ImageButton
61 android:layout_width="wrap_content"
62 android:layout_height="match_parent"
63 android:contentDescription="@string/configure_tools_join_network_action_scan_qr_code_action"
64 android:onClick="@{() -> scanAction.invoke()}"
65 android:src="@drawable/ic_photo_camera_primary_24dp"/>
66
67 </LinearLayout>
68
69 <EditText
70 android:id="@+id/join_passphrase"
71 android:layout_width="match_parent"
72 android:layout_height="match_parent"
73 android:hint="@string/configure_tools_generate_config_optional_passphrase_hint"
74 android:inputType="textVisiblePassword"/>
75
76 </LinearLayout>
77
78</layout>