I want to use Action Bar
in my application that will also run on devices running Android 2.2 or higher. I know I should use Class ActionBarAcitivity
, which is the API made available by Google. I already downloaded the Android Support Library
and Repository
and I imported the class android-support-v7-appcompat
. In this class android-support-v7-appcompat
I added to the build path the .jar
and added these .jar
to my class that specializes ActionBarActivity
.
On the main screen I made it specialize and import the ActionBarActivity
, but in manifest
I can not change from the android:theme="@style/AppTheme"
theme to the ActionBarActivity
android:theme = "@style/Theme.AppCompat.Light"
themes.
When I try to generate an error:
"Error: No resource found that matches the given name (at 'theme' with value '@ style / Theme.AppCompat.Light').
Remarks: When I add the .jars
of android-support-v7-appcompat
to my class, the class R
some.
How do I use ActionBarActivity
in an application running with Android 2.2 or higher?