0
I want to use Action Bar
in my application that will run also on devices with Android 2.2 or higher. I know that I must use the Class ActionBarAcitivity
, which is the API provided by Google. I’ve downloaded the Android Support Library
and Repository
and imported the class android-support-v7-appcompat
. In this class android-support-v7-appcompat
added to the build path .jar
and added these .jar
in my specialized class ActionBarActivity
.
On the main screen I made her specialize and import the ActionBarActivity
, but in the manifest
I can’t change the subject android:theme="@style/AppTheme"
for the themes of ActionBarActivity
android:theme = "@style/Theme.AppCompat.Light"
.
When I try an error is generated:
"Error: No Resource found that Matches the Given name (at 'Theme' with value '@style/Theme.AppCompat.Light').
Remarks: When I add .jars
of android-support-v7-appcompat
to my class, the class R
some.
How to use the ActionBarActivity
in application that runs with Android 2.2 or higher?
Take a look at this video lesson. http://www.thiengo.com.br/criando-supporte-actionbar-android-com-actionbarsherlock
– Claudinei Arteman