我试图在Android中找到NumericUpDown按钮,但失败了。你知道在Android中调用控制器是什么 - 请告诉我!
<?xml version="1.0" encoding="utf-8"?>
<!--
main.xml
7/22 2010
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<GridView
android:id="@+id/GridView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:numColumns="3"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:columnWidth="90dp"
android:stretchMode="columnWidth"
android:gravity="center"
android:background="@color/white"
>
</GridView>
<ButtonUpDown>
<!-- The real name is??? -->
</ButtonUpDown>
</LinearLayout>
Thanx你的时间 修改:
控制器如下所示: Numeric up down http://www.skogberg.eu/img/numUpDown.png
答案 0 :(得分:21)
答案 1 :(得分:5)
自API 11开始,它在SDK中可用 - http://developer.android.com/reference/android/widget/NumberPicker.html
答案 2 :(得分:3)
这是一个老问题,但我会发布这个以防其他人找到这个帖子:
如上所述,NumberPicker
是内部的,不供公众使用。使用它从android源代码复制源代码的最安全的方法。有人已经这样做并在此发布:
http://www.quietlycoding.com/?p=5
另见this有关同一主题的讨论。
答案 3 :(得分:2)
<android.widget.NumberPicker
android:id="@+id/numberPicker1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</android.widget.NumberPicker>
答案 4 :(得分:1)