Android ICS Spinner with actionbarsherlock

2019-06-05 02:44发布

Hi Guys I want to use ICS spinner in my android application so i can move between views (min API 10), I'm using ABS. So how can i add and use spinner( but please A detailed explanation ) in my case, and how to add additional button in the ABS? Thax for your time :)

1条回答
相关推荐>>
2楼-- · 2019-06-05 03:25

ICS Spinner : like the gamil application to choose between your account

Use setNavigationMode() and NAVIGATION_MODE_LIST with ActionBar, as is illustrated in this sample application and as is covered in the documentation.

additional button like the share button in ICS action bar but to do another job like creating something add somthing

You do this the same way that you add items to the overflow menu (or the old options menu), except that you include android:showAsAction in your menu XML (e.g., android:showAsAction="always"), as is illustrated in this sample application and as is covered in the documentation.

查看更多
登录 后发表回答