Android的ICS微调与actionbarsherlock [英] Android ICS Spinner with actionbarsherlock

查看:132
本文介绍了Android的ICS微调与actionbarsherlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想用ICS微调在我的Andr​​oid应用程序,所以我可以在视图之间移动(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() 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.

这篇关于Android的ICS微调与actionbarsherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆