Adding ActionBar to Android API Level 8 App?

五迷三道 提交于 2019-12-03 08:17:31

问题


I know there is a lot of fragmented material on how to do do this all over the internet but I am requesting someone to please give me a step by step guide on how to go from the very beginning, adding the library to adding the code into my Android application / project.

I like the look of this one: https://github.com/johannilsson/android-actionbar but I cannot get it to work properly :/ I have a feeling I'm missing something.

My Application is for Android version 2.2.


回答1:


I wrote ActionBarSherlock which is an extension of the compatibility library designed to provide a single action bar API which works both with a native implementation on pre-3.0 devices as well as with the native ActionBar on post-3.0. This will allow you to write apps which work as low as Android 1.6 and up through Android 4.0+ without having to worry about shuffling between implementations. The library takes care of applying your API calls and theme across the Honeycomb divide.

You can find more information on http://actionbarsherlock.com such as sample applications and documentation.




回答2:


The ActionBar is in the Support Library now!

Find the official documentation here.

And a video introduction about how to work with it here.



来源:https://stackoverflow.com/questions/8128246/adding-actionbar-to-android-api-level-8-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!