Add icons and category

This commit is contained in:
Victor Shcherb 2014-11-02 16:45:49 +01:00
parent 30d94abaac
commit 8210315c7b
9 changed files with 8 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

@ -30,6 +30,7 @@
<string name="rendering_attr_shareTaxiRoutes_name">Share taxi routes</string>
<string name="rendering_attr_trolleybusRoutes_name">Trolleybus routes</string>
<string name="rendering_attr_busRoutes_name">Bus routes</string>
<string name="rendering_category_hide">Hide</string>
<string name="rendering_category_routes">Routes</string>
<string name="rendering_category_details">Details</string>
<string name="rendering_category_transport">Transport</string>

View file

@ -261,12 +261,16 @@ public class ConfigureMapMenu {
RenderingRulesStorage renderer = activity.getMyApplication().getRendererRegistry().getCurrentSelectedRenderer();
if (renderer != null) {
List<RenderingRuleProperty> customRules = new ArrayList<RenderingRuleProperty>(renderer.PROPS.getCustomRules());
createProperties(customRules, R.string.rendering_category_details, "details",
createProperties(customRules, R.string.rendering_category_transport, "transport",
adapter, activity);
createProperties(customRules, R.string.rendering_category_routes, "routes",
adapter, activity);
createProperties(customRules, R.string.rendering_category_transport, "transport",
createProperties(customRules, R.string.rendering_category_details, "details",
adapter, activity);
createProperties(customRules, R.string.rendering_category_hide, "hide",
adapter, activity);
if(customRules.size() > 0) {
adapter.item(R.string.rendering_category_others).setCategory(true).layout(R.layout.drawer_list_sub_header).reg();
createCustomRenderingProperties(adapter, activity, customRules);

View file

@ -210,7 +210,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
}
};
adapter.item(R.string.layer_map).icons(R.drawable.ic_action_globus_dark, R.drawable.ic_action_globus_light)
.listen(listener).position(0).reg();
.listen(listener).position(3).reg();
adapter.item(R.string.layer_overlay).selected(overlayLayer.getMap() != null ? 1 : 0).
icons(R.drawable.ic_action_up_dark, R.drawable.ic_action_up_light).listen(listener).position(14).reg();
adapter.item(R.string.layer_underlay).selected(underlayLayer.getMap() != null ? 1 : 0)