0
numberPicker1= (NumberPicker) findViewById(R.id.numberPicker1);
final String genders[] = { "red", "blue", "green"};
numberPicker1.setMinValue(0);
numberPicker1.setMaxValue(genders.length - 1);
numberPicker1.setDisplayedValues(genders);
numberPicker1.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);;
NumberPicker.OnValueChangeListener myValChangedListener = new NumberPicker.OnValueChangeListener() {
@Override
public void onValueChange(NumberPicker picker, int oldVal, int newVal) {
Toast.makeText(MainActivity.this,
"Value: " + genders[newVal], Toast.LENGTH_LONG).show();
}
};
を非表示にするには?アンドロイドピッカーは前のと次の値/文字列を非表示にするには、どのようにそれDISPLYランダムピッカー 上下の値に
私は[リンク](http://stackoverflow.com/questions/40495601/how-to-hide-the-previous-and-next-numbers-in-a-number-picker)[リンク]を試してみましたhttp://stackoverflow.com/questions/15770530/is-there-a-way-to-hide-the-upper-and-lower-values-in-a-numberpicker) – Arjun