Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scv=(HorizontalScrollView) view.findViewById(R.id.scv);
- scv.setOnTouchListener(new View.OnTouchListener() {
- @Override
- public boolean onTouch(View view, MotionEvent motionEvent) {
- ObjectAnimator animator= ObjectAnimator.ofInt(scv, "scrollX",45);
- animator.setDuration(0);
- animator.start();
- calendar.add(Calendar.DATE, +1);
- Date formattedDate = calendar.getTime();
- dayNumTextView.setText(new SimpleDateFormat("dd").format(formattedDate)+ "");
- monthTextView.setText(new SimpleDateFormat("MMM").format(formattedDate));
- dayNameTextView.setText(new SimpleDateFormat("EEE").format(formattedDate));
- content.getConfirmedAppointments(calendar.getTimeInMillis());
- getCancelledTimeSlots(formattedDate);
- return false;
- }
- });
Add Comment
Please, Sign In to add comment