Step 1:
Extend Your Activty Class with AppCompatActivity
MainActivity.java
1 | package com.pratap.materialdesign; |
Step 2:
Modify the theme in styles.xml file with AppCompat Theme in values folder
values/styles.xml
1 | <resources> |
Step 3:
Create a new folder named values-21 under res folder and create a styles.xml for specific to lollypop device.
values-21/styles.xml
1 | <resources> |
Step 4:
Update the AndroidManifest.xml file with Application theme.
AndroidManifest.xml
1 | <?xml version="1.0" encoding="utf-8"?> |
Step 5:
Run the application in device or Emulator
ScreenShots









