1

当我们从下拉列表中选择一个项目时,我们如何在android中创建一个不可聚焦的下拉菜单?

以前我创建了一个下拉菜单,它是组合框。每次我从下拉列表中选择一个项目时,下拉菜单都是可聚焦的。它不应该。通过将其更改为选项菜单可以解决此问题。我从这个线程中得到了一个建议Combo box not focusable

现在,问题是,选项菜单在 android 中不起作用。它仅在 IOS 上完美运行。

注意:我正在使用 Livecode 进行开发。

4

2 回答 2

1

您不应该在移动设备上使用菜单按钮。这是糟糕的 GUI 设计。

这是安卓的一个例子:

global gCurrentSelectedValue

on mouseUp
  put "One,Two,Three,Four,Five,Size,Seve,Eight,Nine,Then" into myOptionList
  put 4 into gCurrentSelectedValue // sometimes you need more lines for this
  mobilePick myOptionList,gCurrentSelectedValue,"checkmark","cancelDone"
  put the result into rslt
  if rslt > 0 then
    put rslt into gCurrentSelectedValue
    // do something with gCurrentSelectedValue
  end if
end mouseUp
于 2013-08-19T09:18:55.517 回答
1

LC 中提供微调器:

http://forums.runrev.com/phpBB2/viewtopic.php?f=53&t=14543

但是它们可能对您的需求来说太过分了。您是否考虑过使用一组分组按钮?结合“移动”命令,您可以添加动画。

西蒙

于 2013-08-16T03:38:27.490 回答