有没有办法在安卓系统中定制DatePicker的外观?我应该能够在年份和月份之间导航,有什么方法可以做到这一点吗?
发布于 2014-01-29 15:56:33
您可以创建两个独立的NumberPicker
视图
NumberPicker yearPicker = (NumberPicker)findViewById(R.id.year_picker);
NumberPicker monthPicker = (NumberPicker)findViewById(R.id.month_picker);
yearPicker.setMinValue(2000);
yearPicker.setMaxValue(2015);
monthPicker.setMinValue(1);
monthPicker.setMaxValue(12);
https://stackoverflow.com/questions/21435706
复制相似问题