添加微调器动作条(不导航 [英] Adding spinner to ActionBar (not Navigation

查看:124
本文介绍了添加微调器动作条(不导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个微调,使用第二个选项的答案<一个我的动作条href="http://stackoverflow.com/questions/8312344/how-to-add-a-dropdown-item-on-the-action-bar">here 。

I have added a spinner to my ActionBar using the second option from the answer here .

如何我添加微调适配器的微调?我试图用一个微调对象,如谷歌介绍这里却得到了一个空微调对象。

How to I add a spinner adapter to the spinner? I tried using a Spinner object as Google describes here but get a null Spinner object.

任何人都知道如何做到这一点?我不想微调是在操作栏中的导航区域,但与其他行动项目(我用的是拆分操作栏)。

Anybody know how to do this? I don't want the spinner to be in the navigation area of the action bar but in with the other action items (I am using the split action bar).

感谢您的帮助!

推荐答案

好吧,我放弃了微调想法使用的子菜单。我意识到,微调是用于选择住选择的东西;子菜单缝成为一个更好的UI配合。

Well, I ditched the Spinner idea for using a submenu. I realized that the spinner was for selecting things that stayed selected; submenus seamed to be a better UI fit.

感谢反正。

P.S。 我是新来的。如果回答我的问题是恼人的社区,请让我知道。我想成为一个好公民。我已经得到了很多的帮助,从你们了。

P.S. I am new here. If answering my own question is annoying to the community please let me know. I want to be a good citizen. I have gotten a lot of help from you all already.

这篇关于添加微调器动作条(不导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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