Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. scv=(HorizontalScrollView) view.findViewById(R.id.scv);
  2. scv.setOnTouchListener(new View.OnTouchListener() {
  3. @Override
  4. public boolean onTouch(View view, MotionEvent motionEvent) {
  5. ObjectAnimator animator= ObjectAnimator.ofInt(scv, "scrollX",45);
  6. animator.setDuration(0);
  7. animator.start();
  8.  
  9. calendar.add(Calendar.DATE, +1);
  10. Date formattedDate = calendar.getTime();
  11. dayNumTextView.setText(new SimpleDateFormat("dd").format(formattedDate)+ "");
  12.  
  13. monthTextView.setText(new SimpleDateFormat("MMM").format(formattedDate));
  14. dayNameTextView.setText(new SimpleDateFormat("EEE").format(formattedDate));
  15. content.getConfirmedAppointments(calendar.getTimeInMillis());
  16. getCancelledTimeSlots(formattedDate);
  17. return false;
  18. }
  19.  
  20. });
Add Comment
Please, Sign In to add comment