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:
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.