【问题标题】:Why is NumberPicker (up-down-domain picker) not visibility in Android UI Editor at Eclipse?为什么 NumberPicker(上下域选择器)在 Eclipse 的 Android UI 编辑器中不可见?
【发布时间】:2012-05-08 03:59:47
【问题描述】:

up-down-domain picker 是一个流行/通用的 UI 组件,但任何时候我都必须手动添加它。为什么 NumberPicker(up-down-domain picker)在 Eclipse 的 Android UI Editor 中不可见?

<android.widget.NumberPicker
android:id="@+id/ppp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

我明白了! NumberPicker 小部件支持 Android SDK,因为 API 级别 11 = Android 3.0+ 操作系统,我的项目基于 Android 2.x 操作系统。

【问题讨论】:

标签: android


【解决方案1】:

NumberPicker 是在 API 11 中引入的。如果您不是针对 Android 3.0+ 构建应用程序,Eclipse 将无法在 UI 编辑器中显示 View

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多