altosdroid: Add minus sign and decimal point to lat/lon input fields
authorKeith Packard <keithp@keithp.com>
Mon, 14 Sep 2015 05:27:10 +0000 (22:27 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 13 Oct 2015 20:54:28 +0000 (13:54 -0700)
Some android devices always have change-sign and decimal-point keys
visible, but some do not. Make sure they're available for lat/lon input.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosdroid/res/layout/map_preload.xml

index dc613bf2d45f290505792ffbb6656124f3be8f4a..e8b0f26c2596b891f6982aa105d7817795ce0c4e 100644 (file)
@@ -45,7 +45,7 @@
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:hint="@string/preload_latitude_label"
-               android:inputType="number"/>
+               android:inputType="number|numberSigned|numberDecimal"/>
       <TextView android:id="@+id/preload_longitude_label"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
@@ -55,7 +55,7 @@
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:hint="@string/preload_longitude_label"
-               android:inputType="number"/>
+               android:inputType="number|numberSigned|numberDecimal"/>
       <TextView android:id="@+id/preload_types"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"