How to use ActionBar sherlock ?

怎甘沉沦 提交于 2019-12-04 15:05:30

问题


How do I use actionbar sherlock in my android application? i have tried the website but had no sucess.. I want to have a background image,center the app name "no icon in the actionbar" I have tried this code and the example in this link but im not understanding how to setup the code like the files and all. I could use some extra help also here is my download link https://www.dropbox.com/s/a8kwk1ao6ye56dr/Cydia.zip


回答1:


Here is how to use ActionBarSherlock:

  1. Download the ActionBarSherlock here.

  2. Assuming you're using Eclipse IDE, right click your Project, click Properties, then Android. At the bottom, in Layout, Add ActionBarSherlock.

  3. Make sure ActionBarSherlock and your Project are in the same directory.

  4. Extend your classes to Sherlock naming. For example, instead of Activity, change it to Sherlock Activity. The main documentation of ActionBarSherlock is found here.

  5. For easier usage of Sherlock, create util methods in changing the Sherlock names and modifying it.




回答2:


Can you explain more briefly what do you want to do?

for centering the app name, you could use this answer:

Set Title gravity to center in ActionBarSherlock




回答3:


Analyze these samples slowly and carefully and everything will be okay :)

These samples cover how to use ActionBarSherlock in your project.



来源:https://stackoverflow.com/questions/16778941/how-to-use-actionbar-sherlock

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