微调与复选框的项目,这可能吗?这可、复选框、项目

由网友(呐放肆的青春°)分享简介:微调使用复选框的项目,这可能吗?Spinner with checkbox items, is it possible?推荐答案这要看你是什么意思。如果你想有一个真正的多选微调,那么没有什么内置的Andr​​oid为。If you want a true multi-select Spinner, then...

微调使用复选框的项目,这可能吗?

Spinner with checkbox items, is it possible?

推荐答案

这要看你是什么意思。

如果你想有一个真正的多选微调,那么没有什么内置的Andr​​oid为。

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.

阅读全文

相关推荐

最新文章