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.



Popular posts from this blog

A quick tutorial for OWASP ZAP tool for beginners

Owin component : Modifying owin response