theme: add Newtron

- fix: VtmThemes enum
This commit is contained in:
Hannes Janetzek
2014-03-10 01:43:18 +01:00
parent 968d97f440
commit 6188baa4db
5 changed files with 12 additions and 10 deletions

View File

@@ -4,7 +4,6 @@
<item android:id="@+id/theme_default" android:checkable="true" android:title="@string/theme_default" android:checked="true" android:showAsAction="never"></item>
<item android:id="@+id/theme_tubes" android:checkable="true" android:title="@string/theme_tubes" android:showAsAction="never"></item>
<item android:id="@+id/theme_osmarender" android:checkable="true" android:title="@string/theme_osmarender" android:showAsAction="never"></item>
</group>
<item android:id="@+id/theme_newtron" android:checkable="true" android:title="@string/theme_newtron" android:showAsAction="never"></item>
</group>
</menu>

View File

@@ -6,6 +6,7 @@
<string name="theme_default">Default</string>
<string name="theme_tubes">Tubes</string>
<string name="theme_osmarender">Osmarender</string>
<string name="theme_newtron">NewTron</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<string name="error">Error</string>

View File

@@ -68,6 +68,11 @@ public class SimpleMapActivity extends BaseMapActivity {
mMap.setTheme(VtmThemes.OSMARENDER);
item.setChecked(true);
return true;
case R.id.theme_newtron:
mMap.setTheme(VtmThemes.NEWTRON);
item.setChecked(true);
return true;
}
return false;