添加微调器动作条(不导航
我添加了一个微调,使用第二个选项的答案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.