问题描述
微调使用复选框的项目,这可能吗?
Spinner with checkbox items, is it possible?
推荐答案
这要看你是什么意思。
如果你想有一个真正的多选微调
,那么没有什么内置的Android为。
If you want a true multi-select Spinner
, then there's nothing built into Android for that.
请注意,你是在什么内容可以被在微调
行的下拉列表中,除了单选按钮控制。如果你想要把复选框中的行,是我的客人。它会看起来很奇怪,可能无法就正常工作触摸事件,将不会删除单选按钮(据我所知),并会完全无关的微调
的内容在正常模式。因此,我不推荐这种方法,但它是可行的。
Note that you are in control over what goes in the Spinner
rows of the drop-down list, except for the radio button. If you want to put checkboxes in your rows, be my guest. It'll look strange, may not work properly with respect to touch events, will not remove the radio buttons (AFAIK), and will be completely unrelated to the Spinner
's contents in normal mode. Hence, I can't recommend this approach, but it is doable.
该人士$ C $ C到微调
可从Android开源项目,所以欢迎您来克隆它,并制定了 MultiSelectSpinner
什么的。
The source code to Spinner
is available from the Android open source project, so you are welcome to clone it and develop a MultiSelectSpinner
or something.
这篇关于微调与复选框的项目,这可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!