设置在XML微调模式 [英] set spinner mode in XML
问题描述
当定义在code进行微调,您可以将模式设置为对话或下拉列表中
When defining a spinner in code, you can set the mode to 'dialog' or 'dropdown':
微调(上下文的背景下,INT模式) 构造一个新的微调给定的范围内的主题,显示选择的供应模式。
Spinner(Context context, int mode) Construct a new spinner with the given context's theme and the supplied mode of displaying choices.
在XML定义我的布局的时候,但我无法找到这个选项。难道我只是错过了,或者这是不可能的XML?
But I can't find this option when defining my layout in XML. Did I just miss it, or is this not possible in XML?
推荐答案
没有,根据发现的参考的 这是不可能的。没有列出相应的XML属性。像其他事情设置24小时模式为一timepicker,这是不可能的XML
No, according to the reference found here this is not possible. There is no corresponding XML attribute listed. Like other things as setting 24h mode for a timepicker, which is not possible in XML.
这篇关于设置在XML微调模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!