Unit - 3 Working with Styles & Themes




Lesson Plan: Unit - 03
Subject: P15A2AAD - Android Application Development
Topic of Study: Working with Styles and Themes
Grade/Level: Master of Computer Applications
Objective: To understand and difference between styles and themes
Time Allotment: 55 Minutes


  • Working with styles and themes
    • A style is a collection of properties that specify the look and format for a View or window. 
    • A style can specify properties such as height, padding, font color, font size, background color, and much more. 
    • A theme is a style applied to an entire Activity or application, rather than an individual View. 
    • For example, you can apply the same CodeFont style as a theme for an Activity and then all text inside that Activity will have green monospace font.
    • Defining Style:
      • To create a set of styles, save an XML file in the res/values/ directory of your project. 
      • The root node of the XML file must be .
      • For each style you want to create, add a

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form