1、隐藏年
((ViewGroup) (((ViewGroup) dp.getChildAt(0)).getChildAt(0)))
.getChildAt(0).setVisibility(View.GONE);*/
2、隐藏月
((ViewGroup) (((ViewGroup) dp.getChildAt(0)).getChildAt(0)))
.getChildAt(1).setVisibility(View.GONE);
3、隐藏日
((ViewGroup) (((ViewGroup) dp.getChildAt(0)).getChildAt(0)))
.getChildAt(2).setVisibility(View.GONE);
4、隐藏日历列表
dp.setCalendarViewShown(false);
DatePicker隐藏年月日,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/easypass/p/3929046.html