Apply Material Theme to Activity

Apply Material Theme to Activity - Hello Friend GENERAL INFO FOR ANDROID DEVELOPMENT, In the article you read this time with the title Apply Material Theme to Activity, We have prepared this article for you to read and retrieve information there in. Hopefully the contents of postings Artikel Material Design, Artikel MultiWindowMode, We write this you can understand. Alright, good read.

The Title : Apply Material Theme to Activity
link : Apply Material Theme to Activity

Read also


Apply Material Theme to Activity


This video show how to apply Android provided Material Theme to your Activity.


- Edit values/styles.xml to add a new style inherits from Android provided Material Theme: android:Theme.Material, android:Theme.Material.Light or android:Theme.Material.Light.DarkActionBar.

- Edit AndroidManifest.xml to use the new style.

- You have to change your MainActivity extends Activity. Otherwise the following error will happen:
You need to use a Theme.AppCompat theme (or descendant) with this activity.

The video also show how it display on Multi-Window Mode.


Next:
- Customize theme's colors



Thus Article Apply Material Theme to Activity

The End Article Apply Material Theme to Activity This time, hopefully can give benefits to all of you. well, see you in posting other articles.

You are now reading the article Apply Material Theme to Activity with the link address http://xorislogo.blogspot.com/2016/07/apply-material-theme-to-activity.html

0 Response to "Apply Material Theme to Activity"

Post a Comment