Add icons for backspace and go to next field

This commit is contained in:
PavelRatushny 2017-11-02 13:42:39 +02:00
parent 9744180f22
commit d197c9346b
6 changed files with 14 additions and 7 deletions

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_action_backspace_fill" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_action_backspace_stroke"/>
</selector>

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_action_next_field_fill" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_action_next_field_stroke"/>
</selector>

View file

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_action_add_photos" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_action_aircraft"/>
</selector>

View file

@ -18,6 +18,7 @@
tools:text="3"/>
<ImageView
android:tint="?attr/keyboard_item_text_color"
android:id="@+id/keyboard_item_image"
android:layout_width="match_parent"
android:layout_height="0dp"

View file

@ -16,6 +16,7 @@
tools:text="3"/>
<ImageView
android:tint="?attr/keyboard_item_text_color"
android:id="@+id/keyboard_item_image"
android:layout_width="match_parent"
android:layout_height="match_parent"

View file

@ -250,8 +250,8 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm
Object[] keyboardItems = new Object[] { "1", "2", "3", getString(R.string.shared_string_clear),
"4", "5", "6", "-",
"7", "8", "9", "\u21e6",
".", "0", ":", R.drawable.input_coordinate_keyboard_backspace };
"7", "8", "9", R.drawable.ic_keyboard_backspace,
".", "0", ":", R.drawable.ic_keyboard_next_field};
final GridView keyboardGrid = (GridView) mainView.findViewById(R.id.keyboard_grid_view);
final KeyboardAdapter keyboardAdapter = new KeyboardAdapter(mapActivity, keyboardItems);
keyboardGrid.setAdapter(keyboardAdapter);