Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onMove(MotionEvent e) {
- Day selectedDay = searchForSelectedDay((int) e.getX(), (int) (e.getY() + getScrollY()));
- if (selectedDay != null && selectedDay != mPreviousDay){
- defineDayContent(mPreviousDay, selectedDay);
- }
- ...
- defineDayContent(Day arg0, Day arg1){
- //iterates from arg0 till arg1 and sets the background
- for(Day d : (iterate from arg0 till arg1)){
- d.setBackground(Calendar.BACKGROUND_DRAWABLE);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement