aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/main.xml43
1 files changed, 15 insertions, 28 deletions
diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml
index 2e722b0..0b1273b 100644
--- a/app/src/main/res/layout/main.xml
+++ b/app/src/main/res/layout/main.xml
@@ -44,8 +44,10 @@
</LinearLayout>
- <!-- Pairing form. Fields are grouped and labelled by where their
- value comes from on the target's Wireless debugging screen. -->
+ <!-- Pairing form. Each field is one value the target already prints,
+ copied verbatim: the Wireless debugging screen shows the device
+ address as a single "ip:port" string, and the pairing dialog adds
+ its own port plus the code. -->
<LinearLayout
style="@style/Card"
android:layout_width="match_parent"
@@ -67,15 +69,22 @@
style="@style/FieldLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/label_host"/>
+ android:text="@string/label_address"/>
+
+ <TextView
+ style="@style/Caption"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/sub_address"/>
<EditText
- android:id="@+id/host"
+ android:id="@+id/device_address"
style="@style/Field"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:hint="@string/host_hint"
- android:inputType="text"
+ android:layout_marginTop="@dimen/space_xs"
+ android:hint="@string/address_hint"
+ android:inputType="textUri"
android:autofillHints="postalAddress"/>
<TextView
@@ -120,28 +129,6 @@
</LinearLayout>
- <TextView
- style="@style/FieldLabel"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/label_connect"/>
-
- <TextView
- style="@style/Caption"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="@string/sub_connect"/>
-
- <EditText
- android:id="@+id/connect_port"
- style="@style/Field"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="@dimen/space_xs"
- android:hint="@string/connect_port_hint"
- android:inputType="number"
- android:autofillHints="off"/>
-
<Button
android:id="@+id/pair"
style="@style/Button.Primary"