Metrics
0
Watch 4 Star 14 Fork 2

vigiles / NumberPickerDialogAndroidApache-2.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
纯数字(单个)选择器弹窗 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

NumberPickerDialog

#NumberPickerDialog 纯数字(单个)选择器弹窗 原载于www.gaohaiyan.com/1824.html

##引入 你可以直接引入Module使用源码。

也可以通过maven引入。
1.在project的build.gradle里添加maven仓库依赖

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

2.然后在module的build.gradle里引入这个库

	dependencies {
	        compile 'com.github.731942771:NumberPickerDialog:1.0'
	}

##使用

	new NumberPickerDialog(
		this,
		new NumberPicker.OnValueChangeListener() {
			@Override
			public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
				((TextView) findViewById(R.id.num)).setText(newVal + "");
			}
		},
		90, // 最大值
		20, // 最小值
		40) // 默认值
		.setCurrentValue(55) // 更新默认值
		.show();

U A Welcome.

Comments ( 0 )

You need to Sign in for post a comment

Android
1
https://gitee.com/vigiles/numberpickerdialog.git
git@gitee.com:vigiles/numberpickerdialog.git

Help Search