1
有没有一种方法来定制Android中的DatePicker外观? 我应该能够浏览年份和月份 有没有办法做到这一点?定制datepicker的外观
有没有一种方法来定制Android中的DatePicker外观? 我应该能够浏览年份和月份 有没有办法做到这一点?定制datepicker的外观
你可以让两个单独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);