Android Fundamentals: Styles and Themes

In this course, you will go through how to style widgets, or views of your application, along with selecting and applying appropriate themes to your app while keeping in mind the android device API level.
Course info
Rating
(49)
Level
Beginner
Updated
Oct 10, 2016
Duration
2h 46m
Table of contents
Course Overview
Introduction
Styling Views
Using the Concept of Inheritance for Styling Views
Applying Themes
Maintaining Backward Compatibility
Exploring Practical Usage of Styles and Themes
Description
Course info
Rating
(49)
Level
Beginner
Updated
Oct 10, 2016
Duration
2h 46m
Description

An attractive user interface is the first impression of any application that the users come across. To provide a smooth, attractive, and consistent user-interface and design, the most important step that a developer should focus on is the themes and styles of the application. This course, Android Fundamentals: Styles and Themes, is all about how to apply styles to the views and widgets present in the android application, and choosing appropriate themes for an app. First, you will focus on how to apply styles to a View or ViewGroup, along with using the concept of inheritance for styling Views. Next, you'll go over customizing a theme for your application and which can help users identify the category of your application to some extent by just having a glance at it. Finally, you'll go over how best to handle some compatibility issues with your app for lower API level devices that will use it. When you are finished with this course, you'll have a better understanding of how to apply styles and themes to your Android applications.

About the author
About the author

Sriyank is a passionate software developer and loves to share his knowledge through his blogs and video courses. He follows "share and gain" principle which led him to publish many courses online. Though he has a deep love for Android he also specializes in other mobile app platforms such as iOS and also web development frameworks such as Laravel. He started his journey of sharing knowledge by holding hands-on workshops in various top level Indian Institutes such as NITs and IITs which eventually made him the speaker of one of the Google Developers Groups India which further supported his workshops in many more institutions. Currently Sriyank is working as freelance software developer and a proud online trainer. Apart from this, he loves to travel and explore new places.

More from the author
Android Fundamentals: Content Providers
Beginner
3h 26m
27 Jul 2017
Android Realm Fundamentals
Beginner
2h 29m
21 Apr 2017
More courses by Sriyank Siddhartha
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, I am Sriyank Siddhartha and welcome to my course of Android Fundamentals: Styles and Themes. I have several years of experience on Android and worked with several clients and developed a large number of applications specially based on E-commerce. Have you ever worked with styles and themes in your Android projects? As a beginner, it is a big pain to select an appropriate theme for the application and style your views and wizards in such a way that it gains users attention. Sometimes we find it really difficult from where to begin with. So here comes my course that covers all the basics and fundamental concepts related to styling and theming your application. Some of the major topics that we will cover include how to apply styles to your application, selecting and applying themes, styles and themes inheritance, providing backward compatibility to lower API levels, and at the end we will explore the practical uses of styles and themes. By the end of this course you will have a solid understanding of how to apply styles and themes to your application. I hope you will join me on this journey to explore styles and themes at Pluralsight. Thank you.

Introduction
Hi this is Sriyank Siddhartha and welcome to the introduction module of Android Fundamentals: Styles and Themes. In this module I will give you a brief introduction of the topics that we are going to cover in this course. So starting from the next module, we will first check out how to style views present inside our application, such as how to style a TextView, Button, or even how to style a layout such as a RelativeLayout or a linear layout. Proceeding further, in module 3 we will implement the concept of inheritance for styling views inside our application. And then in the fourth module we will learn how to select a theme for our application and also how to customize a theme as per our requirement so that the application theme represents the brand of an organization or represent the category to which the application belongs to. And then we will check out how to implement the platform specific feature while providing the backward compatibility to the lower level API devices, by using XML as well as Java code. And at the end of this course we will explore the practical usage of using styles and themes in your own application, such as your life project.

Styling Views
Hi this is Sriyank Siddhartha and welcome to the next module of Android Fundamentals: Styles and Themes. In this module we are going to learn how to style views inside our application. So this module is basically divided into three sections. In the first part of this module we will learn how to define styles for a particular view and we will check this concept by styling the most common views that I used in our application, such as a TextView and a Button. Now moving forward, we will check out how we can use the concept of Selector for styling views based on their current state. Such as when the button is pressed, when the button is not pressed, and something like that. And we will implement the concept of Selector using two classes, such as StatelistDrawable and also ColorStateList. So what this selector stands for and how we can make use of these two classes, we will check out in this module itself. Now at the end of this module we will learn what are the advantages of defining styles for a particular view under the resource values folder.

Using the Concept of Inheritance for Styling Views
Hi this is Sriyank Siddhartha and welcome to the next module of Android Fundamentals: Styles and Themes. In this module we are basically going to learn how to style views using the concept of inheritance. So initially in this module we will check out what could be the problem statement if we do not apply the concept of inheritance for styling views. So initially we will check out the problem statement that we are going to solve using the concept of inheritance while styling views. And then for this problem we are going to find a solution using the concept of inheritance while styling views and also we are going to check out what are the advantages if we are going to use the concept of inheritance while styling views. So first of all let me refresh your memory for the concept of inheritance. So let us consider this AppCompatActivity that we generally use while creating any application. Let us assume this AppCompatActivity is Class A. So this Class A inherits from FragmentActivity, let's call it as Class B, and this Class B now inherits from Activity class. Let's call it Class C. Now this Class A is going to get all the properties defined inside Class B and also Class C, which means the Class C and Class B are actually the super class or the parent class of this Class A. So this was the concept of inheritance in case of our Activity class. So we are going to implement the concept of inheritance in similar fashion for styling views as well.

Applying Themes
Hi this is Sriyank Siddhartha and welcome to the next module of Android Fundamentals: Styles and Themes. In this module we will check out how do we apply themes to our application and how do we customize themes as per our requirement. So what are the topics that we are going to check out in this module? Firstly, we will check out what is the main reason for theming our application, that is why do we need to customize the themes that we apply to our application? And next we will check out what are the available Android themes that are provided to us inside the Android SDK, and then we will compare what are the similarities and also the differences between applying styles to a particular view and applying themes to the application as a whole. And finally we will check out how to apply themes to our application and customize it as per our requirement, and at the end of this video we will check out the topic of color palette in brief and how it is useful to apply colors and tints to our views and widgets present inside our application.