如何改变 numberPicker 的速度? 我的号码选择器:
<NumberPicker android:id="@+id/numberpicker"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:layout_marginRight="140dp"
/>
最佳答案
默认值为 300 毫秒。 数字递增和递减的速度(以毫秒为单位)。
public static final long SPEED_UPDATE_PICKER = 500;
mPicker.setOnLongPressUpdateInterval(SPEED_UPDATE_PICKER );
关于java - 如何更改 Android java/xml 中的 numberPicker 速度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33970222/