1.xml布局中添加属性:Android:descendantFocusability="blocksDescendants"
2.代码中设置:numberPicker.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);
1.xml布局中添加属性:Android:descendantFocusability="blocksDescendants"
2.代码中设置:numberPicker.setDescendantFocusability(NumberPicker.FOCUS_BLOCK_DESCENDANTS);
转载于:https://www.cnblogs.com/gdpdroid/p/6075099.html