aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/configure_tools_fragment.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/configure_tools_fragment.xml')
-rw-r--r--app/src/main/res/layout/configure_tools_fragment.xml73
1 files changed, 73 insertions, 0 deletions
diff --git a/app/src/main/res/layout/configure_tools_fragment.xml b/app/src/main/res/layout/configure_tools_fragment.xml
new file mode 100644
index 0000000..bb67b45
--- /dev/null
+++ b/app/src/main/res/layout/configure_tools_fragment.xml
@@ -0,0 +1,73 @@
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="generateConfigAction"
27 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/> <!-- '<' escaping: https://stackoverflow.com/q/40970686 -->
28
29 <variable
30 name="joinNetworkAction"
31 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
32
33 <variable
34 name="encryptDecryptPrivateKeysAction"
35 type="kotlin.jvm.functions.Function0&lt;kotlin.Unit>"/>
36
37 </data>
38
39 <LinearLayout style="@style/AppTheme.List">
40
41 <LinearLayout
42 style="@style/AppTheme.ListBlock.Clickable"
43 android:onClick="@{() -> generateConfigAction.invoke()}">
44
45 <TextView
46 style="@style/AppTheme.BlockTitle"
47 android:text="@string/configure_tools_action_generate_node_configuration_and_keys"/>
48
49 </LinearLayout>
50
51 <LinearLayout
52 style="@style/AppTheme.ListBlock.Clickable"
53 android:onClick="@{() -> joinNetworkAction.invoke()}">
54
55 <TextView
56 style="@style/AppTheme.BlockTitle"
57 android:text="@string/configure_tools_action_join_network_via_invitation_url"/>
58
59 </LinearLayout>
60
61 <LinearLayout
62 style="@style/AppTheme.ListBlock.Clickable"
63 android:onClick="@{() -> encryptDecryptPrivateKeysAction.invoke()}">
64
65 <TextView
66 style="@style/AppTheme.BlockTitle"
67 android:text="@string/configure_tools_action_encrypt_decrypt_private_keys"/>
68
69 </LinearLayout>
70
71 </LinearLayout>
72
73</layout>