altosdroid: Change layout of idle mode dialog a bit
authorKeith Packard <keithp@keithp.com>
Mon, 10 Feb 2020 22:25:55 +0000 (14:25 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 10 Feb 2020 22:25:55 +0000 (14:25 -0800)
Stick 'callsign:' label and callsign on same line. Save a bit of vertical space.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/app/src/main/res/layout/idle_mode.xml
altosdroid/app/src/main/res/values/strings.xml

index 11b5528b8d4f820bbd002dce91022a1152679438..adae80eb4a8c0a87a1f89e2c0156f1fc359b945c 100644 (file)
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     >
-      <TextView android:id="@+id/set_callsign_label"
-               android:layout_width="fill_parent"
-               android:layout_height="wrap_content"
-               android:text="@string/set_callsign_label"
-               />
-      <EditText android:id="@+id/set_callsign"
-               android:layout_width="fill_parent"
-               android:layout_height="wrap_content"
-               android:hint="@string/set_callsign_label"/>
+    <LinearLayout
+       android:orientation="horizontal"
+       android:layout_width="match_parent"
+       android:layout_height="wrap_content"
+       >
+       <TextView android:id="@+id/set_callsign_label"
+                 android:layout_width="wrap_content"
+                 android:layout_height="wrap_content"
+                 android:text="@string/set_callsign_label"
+                 />
+       <EditText android:id="@+id/set_callsign"
+                 android:layout_width="wrap_content"
+                 android:layout_height="wrap_content"
+                 android:layout_weight="1"
+                 android:hint="@string/set_callsign_label"/>
+    </LinearLayout>
       <TextView android:id="@+id/frequency"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
index 162ef1f425db2f74113a4a1f0ce58909cd37de6c..12b6d04f98c209f2be83cb84ec381f5a7540d827 100644 (file)
 
        <!-- Idle mode -->
        <string name="idle_mode">Idle Mode</string>
-       <string name="set_callsign_label">Callsign</string>
+       <string name="set_callsign_label">Callsign</string>
        <string name="connect_idle">Monitor</string>
        <string name="disconnect_idle">Disconnect</string>
        <string name="reboot_idle">Reboot</string>