How to use ActionBar sherlock ?

后端 未结 3 1107
小蘑菇
小蘑菇 2021-02-10 21:12

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 ac

3条回答
  •  一个人的身影
    2021-02-10 21:25

    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.

提交回复
热议问题