Android的ICS微调与actionbarsherlock [英] Android ICS Spinner with actionbarsherlock
问题描述
大家好
我想用ICS微调在我的Android应用程序,所以我可以在视图之间移动(API分10),我使用的ABS。
所以,我怎么可以添加和使用微调(但请详细说明),在我的情况,以及如何在ABS添加额外的按钮?
为Thax公司你的时间:)
ICS微调:喜欢贾米勒应用到您的帐户之间进行选择。
块引用>使用
setNavigationMode()
和NAVIGATION_MODE_LIST
与动作条
,如这个示例应用程序和覆盖在文档。
附加按钮就像在ICS操作栏中的分享按钮,而是不喜欢创造一些财产以后添加
高就
块引用>您这样做,你添加项目到溢出菜单(或旧菜单选项)以同样的方式,除非你包括
的android:showAsAction
菜单中的XML(例如,的android:showAsAction =总是
),如的这个示例应用程序并覆盖在的文档。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 :)
解决方案ICS Spinner : like the gamil application to choose between your account
Use
setNavigationMode()
andNAVIGATION_MODE_LIST
withActionBar
, 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.这篇关于Android的ICS微调与actionbarsherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!