Is there only material design theme for android?
-
Hello! I wonder if there is only material design theme for android in onsen?
-
@iriekun You can use iOS flat on Android, Onsen’s custom CSS, or your own custom CSS. Here is how you can play with styles on the components: http://components.onsen.io/
-
@munsterlander can you tell how can i use iOS flat on android? because when i run on android, the theme change to material design automatically
-
@iriekun Just place this at the top of your script block:
ons.disableAutoStyling();
You can see a discussion here about it: https://community.onsen.io/topic/920/onsen-ui-v2-display-only-ios-css-for-all-platform/4
And also, the docs on it here: https://onsen.io/v2/docs/js/ons.html#method-disableAutoStyling
-
okay thank you a lot :)
-
@iriekun Cross platform styling is explained in the docs. I’d recommend you to have a look at that guide to get a better understanding of Onsen UI.