Android using theme for your UI development


We're gonna define theme to use in our app. This means we do not have to manually 'write up' a bunch of "style=" attribute and assigned a custom value to it.

The only major code change we need to do is in our manifest.xml as shown below :-


Declaring theme in manifest 

Here we are assigning a theme called AppTheme/NoActionBar (ok maybe its not a good name)





Default Styling of UI Component in style.xml

Here we have two customer style which we would like to apply to our controls. These are call Widget.TextView.Custom and Widget.Spinner.Customer respectively.



   

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm