I created a new project targeting the L preview. The starter activity that the sdk generates extends ActionBarActivity, however, when I try to run the bare-bone generated ac
AppCompat v21.+'s Theme.AppCompat
extends Theme.Base.AppCompat
which extends Theme.Platform.AppCompat
which extends android:Theme.Material
on 21+ devices (i.e., Android L) devices so you shouldn't have to do anything specific to get the Material
theme if you are using AppCompat.
Use the following Theme:
android:theme="@style/Base.V7.Theme.AppCompat" >
You need to change dependency in the build gradle to
compile 'com.android.support:appcompat-v7:21.+'