How to add suport library,ActionBarActivity and th

2020-04-17 07:42发布

I added android-support-v7-appcompat. Next I clicked on each file in directory \libs. Then I clicked android-support-v7-appcompat and opened properties. Next checked files from directory libs and unchecked Android Dependencies. Next opened properties of myproject. Went to the projects and by Add button added android-support-v7-appcompat.

But nothing is working. How can I make ActionBarActivity(there is no new variants) and how can I add a theme. I used to add in manifest to activity, tried to add it to the style.xml Please help me. What I did wrong?

3条回答
▲ chillily
2楼-- · 2020-04-17 07:54
  1. Sample locate $ANDROID_SDK/samples/android-18/ui/actionbarcompat/
  2. ActionBarCompat library project locate on $ANDROID_SDK/extras/android/support/v7/appcompat
查看更多
甜甜的少女心
3楼-- · 2020-04-17 07:58

Is necessary use and extra library for use the ActionBar, not only the android-support-library. Try to use the ActionBarSherlockLibrary (this library do that you want to do).

http://actionbarsherlock.com/

查看更多
甜甜的少女心
4楼-- · 2020-04-17 08:02

If starting a new project now, I would do the same as you and use Action Bar Compat . This should help : ActionBarCompat - how to use it

查看更多
登录 后发表回答