Google has shown some nice ways that buttons are shown on Lollipop here.
I\'m talking about both the raised and the flat buttons.
How can I mimic them on pre
Add the compat library to your app. (The most current version can be found here.) Do this by adding a dependency within your build.gradle file:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
Declate your apptheme in a styles.xml file located in the values directory:
Set the declared style as the one to use for your application in the manifest.xml file:
In your layouts declare a raised button as follows
Declare a flat button style as follows:
Result on both a 4.4 (a phone) and a 5.0 (a tablet) device:
Details can be found in the official documentation: http://developer.android.com/training/material/theme.html