Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public boolean onMove(MotionEvent e) {
  2.  
  3. Day selectedDay = searchForSelectedDay((int) e.getX(), (int) (e.getY() + getScrollY()));
  4.  
  5. if (selectedDay != null && selectedDay != mPreviousDay){
  6. defineDayContent(mPreviousDay, selectedDay);
  7. }
  8.  
  9. ...
  10.  
  11. defineDayContent(Day arg0, Day arg1){
  12. //iterates from arg0 till arg1 and sets the background
  13. for(Day d : (iterate from arg0 till arg1)){
  14. d.setBackground(Calendar.BACKGROUND_DRAWABLE);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement