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:
Download the ActionBarSherlock here.
Assuming you're using Eclipse IDE, right click your Project, click Properties, then Android. At the bottom, in Layout, Add ActionBarSherlock.
Make sure ActionBarSherlock and your Project are in the same directory.
Extend your classes to Sherlock naming. For example, instead of Activity, change it to Sherlock Activity. The main documentation of ActionBarSherlock is found here.
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.