Пример #1
0
 @Override
 public void onDateChanged() {
   updateAdapterData();
   mAdapter.notifyDataSetChanged();
   postSetSelectionCentered(
       mController.getSelectedDay().get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR));
 }
 public MonthAdapter(Context context, DatePickerController controller) {
   mContext = context;
   mController = controller;
   init();
   setSelectedDay(mController.getSelectedDay());
 }
Пример #3
0
 public void onDateChanged() {
   mAdapter.notifyDataSetChanged();
   postSetSelectionCentered(mController.getSelectedDay().year - mController.getMinYear());
 }