Add icons and category
This commit is contained in:
parent
30d94abaac
commit
8210315c7b
9 changed files with 8 additions and 3 deletions
BIN
OsmAnd/res/drawable-hdpi/ic_action_road_works_dark.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/ic_action_road_works_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
OsmAnd/res/drawable-hdpi/ic_action_road_works_light.png
Normal file
BIN
OsmAnd/res/drawable-hdpi/ic_action_road_works_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_road_works_dark.png
Normal file
BIN
OsmAnd/res/drawable-xhdpi/ic_action_road_works_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
OsmAnd/res/drawable-xhdpi/ic_action_road_works_light.png
Normal file
BIN
OsmAnd/res/drawable-xhdpi/ic_action_road_works_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/ic_action_road_works_dark.png
Normal file
BIN
OsmAnd/res/drawable-xxhdpi/ic_action_road_works_dark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
BIN
OsmAnd/res/drawable-xxhdpi/ic_action_road_works_light.png
Normal file
BIN
OsmAnd/res/drawable-xxhdpi/ic_action_road_works_light.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue