I have successfully imported ActionbarSherlock library to my own project, and I can already see the sherlock made action bar in my application when I run my project.
But, now, everything is by default. How can I make a custom action bar with sherlock library ? Any tutorials available?
I have never used the
ActionBarSherlocklibrary (I have used Greendroid in the past, but now I use ActionBarCompat for pre-honeycomb devices, which is great and very easy to use.).That being said, I suggest you to look a the
res/valuesfolder where you will probably find all the default styles (probably wrapped in a custom theme which extends the default android theme). From there, you just have to extend that Sherlock theme and override the styles with your own.If you want a good tutorial on how styles and themes work in Android, I suggest you to read the official documentation.
Edit
In order to use
ActionBarCompatyou have to do the following:MainActivityfrom the build path (right click on the class -> Build Path -> Exclude).ActionBarActivity.@style/appThemein the manifest.Finally, don’t forget that the action bar actions are in the
res/menu/main.xmlfile. And same thing for the colors and styles, look at theres/valuesdirectory.