question: void updateDays ( WheelView year , WheelView month , WheelView day ) { Calendar calendar = Calendar . getInstance ( ) ; calendar . set ( Calendar . YEAR , calendar . get ( Calendar . YEAR ) + year . getCurrentItem ( ) ) ; calendar . set ( Calendar . MONTH , month . getCurrentItem ( ) ) ; int maxDays = calendar . getActualMaximum ( Calendar . DAY_OF_MONTH ) ; day . setViewAdapter ( new DateNumericAdapter ( this , 1 , maxDays , calendar . get ( Calendar . DAY_OF_MONTH ) - 1 ) ) ; int curDay = Math . min ( maxDays , day . getCurrentItem ( ) + 1 ) ; day . setCurrentItem ( curDay - 1 , true ) ; }
target:  Updates day wheel. Sets max days according to selected month and year