From cf24442cd7b18ffd7dfe3998ea40d8e5e1d3f16e Mon Sep 17 00:00:00 2001 From: pacien Date: Thu, 24 Aug 2017 15:54:31 +0200 Subject: Add invitation URL QR code scanning ; Refactor configuration dialogs --- app/src/main/res/layout/dialog_network_join.xml | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/src/main/res/layout/dialog_network_join.xml (limited to 'app/src/main/res/layout/dialog_network_join.xml') diff --git a/app/src/main/res/layout/dialog_network_join.xml b/app/src/main/res/layout/dialog_network_join.xml new file mode 100644 index 0000000..2d23d4b --- /dev/null +++ b/app/src/main/res/layout/dialog_network_join.xml @@ -0,0 +1,37 @@ +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingBottom="@dimen/dialog_vertical_margin" + android:paddingLeft="@dimen/dialog_horizontal_margin" + android:paddingRight="@dimen/dialog_horizontal_margin" + android:paddingTop="@dimen/dialog_vertical_margin"> + + <EditText + android:id="@+id/net_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/field_net_name"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <EditText + android:id="@+id/invitation_url" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:hint="@string/field_invitation_url"/> + + <ImageButton + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:contentDescription="@string/action_scan_qr_code" + android:onClick="scanCode" + android:src="@drawable/ic_photo_camera_primary_24dp"/> + + </LinearLayout> + +</LinearLayout> -- cgit v1.2.3