diff --git a/OsmAnd/res/drawable/keyboard_item_add_button_bg.xml b/OsmAnd/res/drawable/keyboard_item_add_button_bg.xml new file mode 100644 index 0000000000..c71c2cbe57 --- /dev/null +++ b/OsmAnd/res/drawable/keyboard_item_add_button_bg.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml b/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml index 25c7656b7e..060d0cd916 100644 --- a/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml +++ b/OsmAnd/res/layout-land/fragment_coordinate_input_dialog.xml @@ -177,9 +177,10 @@ android:id="@+id/keyboard_divider" android:layout_width="match_parent" android:layout_height="1dp" - android:background="?attr/dashboard_divider"/> + android:background="@color/keyboard_item_add_button_bg_pressed"/> + android:background="@color/keyboard_item_add_button_bg_pressed"/> + android:background="@color/keyboard_item_add_button_bg_pressed"/> #536dfe #f2f2f2 #536dfe + #536dfe + #4b62e3 #4257c9 diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java index fed4f363d9..2013fc3e08 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/CoordinateInputDialogFragment.java @@ -234,9 +234,7 @@ public class CoordinateInputDialogFragment extends DialogFragment implements Osm } }); - TextView addMarkerButton = (TextView) mainView.findViewById(R.id.add_marker_button); - addMarkerButton.setBackgroundResource(lightTheme ? R.drawable.keyboard_item_light_bg : R.drawable.keyboard_item_dark_bg); - addMarkerButton.setOnClickListener(new View.OnClickListener() { + mainView.findViewById(R.id.add_marker_button).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { addMapMarker();