【问题标题】:Flex Mobile Project: Numeric KeyboardFlex 移动项目:数字键盘
【发布时间】:2011-07-26 22:24:39
【问题描述】:

怎么做?

使用数字键盘而不是全键盘编辑字段

我的代码:

    <s:TextInput text="{TransactionObject.cartao}" id="item" restrict="0123456789"  />

适用于 Android 和剧本的应用

【问题讨论】:

  • 它应该在 AIR 中自动工作。这是 AIR 应用程序还是浏览器驻留的 Flash RIA?
  • 适用于 playbook 和 android 的 App air

标签: android apache-flex actionscript-3 mobile blackberry-playbook


【解决方案1】:

当前版本的 Adob​​e AIR 中不提供数字键盘。

【讨论】:

    【解决方案2】:

    你不能得到电话键盘,但你可以用这个得到数字,你甚至不需要 restrict 语句:

    <s:TextInput softKeyboardType="{SoftKeyboardType.NUMBER}" />
    

    如果您不导入 flash.text.SoftKeyboardType,只需使用文字“数字”。在 Flex SDK 4.6.0 中可用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-07
      • 1970-01-01
      • 2012-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多