From 8e0835e57084be1216e3ef1e71941295b2df909d Mon Sep 17 00:00:00 2001 From: Eric Kuck Date: Tue, 24 Jul 2018 12:32:40 -0500 Subject: Added QR code scanner as tunnel import method Signed-off-by: Jason A. Donenfeld --- .../res/layout/config_naming_dialog_fragment.xml | 25 +++++++++++ app/src/main/res/layout/tunnel_list_fragment.xml | 52 +++++++++++++--------- 2 files changed, 56 insertions(+), 21 deletions(-) create mode 100644 app/src/main/res/layout/config_naming_dialog_fragment.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/config_naming_dialog_fragment.xml b/app/src/main/res/layout/config_naming_dialog_fragment.xml new file mode 100644 index 00000000..aae78049 --- /dev/null +++ b/app/src/main/res/layout/config_naming_dialog_fragment.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/tunnel_list_fragment.xml b/app/src/main/res/layout/tunnel_list_fragment.xml index 48293133..2a7de392 100644 --- a/app/src/main/res/layout/tunnel_list_fragment.xml +++ b/app/src/main/res/layout/tunnel_list_fragment.xml @@ -38,6 +38,29 @@ app:layout="@{@layout/tunnel_list_item}" app:configurationHandler="@{rowConfigurationHandler}" /> + + + + + - - - - - + android:onClick="@{fragment::onRequestScanQRCode}" + app:srcCompat="@drawable/ic_action_scan_qr_code_white" + app:fabSize="mini" + app:fab_title="@string/scan_qr_code" /> + + -- cgit v1.2.3