{"id":2069,"date":"2015-01-31T17:09:15","date_gmt":"2015-01-31T11:39:15","guid":{"rendered":"http:\/\/codetheory.in\/?p=2069"},"modified":"2015-01-31T18:53:01","modified_gmt":"2015-01-31T13:23:01","slug":"android-themes-styles-and-attributes","status":"publish","type":"post","link":"https:\/\/codetheory.in\/android-themes-styles-and-attributes\/","title":{"rendered":"Android Themes, Styles and Attributes"},"content":{"rendered":"

One thing that bugs me from time to time is the appearance and disappearance of the Action bar or the change in its UI with similar XML code and Java API calls but with different themes. I was somehow managing till now but then decided that it’s probably a good time to understand the concept of themes and styles in android to make sure I know why there’s that frustrating difference just by a small change in the theme name (res\/values\/styles.xml<\/code> then used in AndroidManifest.xml<\/code>) that you sometimes do not even realize while creating new projects as it is set automatically based on the API levels you target.<\/p>\n

<\/p>\n

I’m not going to get into full details but the aim of this small article is to sort of compile all sorts of useful resources with regards to themes and styles so that one can quickly go through them and understand. The difference not only affects Action bars but also all sorts of other UI elements including the Window itself that actually gets styled by the themes you specify. Some ship with the app compat support library, some ship with the Android platform itself, some ship with some other library and some can be custom made by yourself or a teammate.<\/p>\n

Consider going through these resources:<\/p>\n