diff --git a/OsmAnd/res/layout/list_item_icon_and_switch.xml b/OsmAnd/res/layout/list_item_icon_and_switch.xml new file mode 100644 index 0000000000..47f588d656 --- /dev/null +++ b/OsmAnd/res/layout/list_item_icon_and_switch.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + diff --git a/OsmAnd/res/layout/list_item_text_button.xml b/OsmAnd/res/layout/list_item_text_button.xml index f3d4ae7026..0baf4b7990 100644 --- a/OsmAnd/res/layout/list_item_text_button.xml +++ b/OsmAnd/res/layout/list_item_text_button.xml @@ -5,26 +5,42 @@ android:layout_height="wrap_content" android:background="?attr/bg_color" android:minHeight="54dp" - android:orientation="horizontal"> + android:orientation="vertical"> - - - + android:orientation="horizontal"> + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapWidgetRegistry.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapWidgetRegistry.java index 053773ce42..195dc5afac 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapWidgetRegistry.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapWidgetRegistry.java @@ -344,7 +344,8 @@ public class MapWidgetRegistry { cm.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.coordinates_widget, map) .setIcon(R.drawable.ic_action_coordinates_widget) .setSelected(settings.SHOW_COORDINATES_WIDGET.get()) - .setListener(new ApearanceItemClickListener(settings.SHOW_COORDINATES_WIDGET, map)).createItem()); + .setListener(new ApearanceItemClickListener(settings.SHOW_COORDINATES_WIDGET, map)) + .setLayout(R.layout.list_item_icon_and_switch).createItem()); cm.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.map_markers, map) .setDescription(settings.MAP_MARKERS_MODE.get().toHumanString(map)) .setListener(new ContextMenuAdapter.ItemClickListener() {