nomanr / WeekCalendar

A simple weekly calendar.
646 stars 127 forks source link

how can setNextweek and setPervious on button ckick #33

Open UmeshBaldaniya46 opened 7 years ago

UmeshBaldaniya46 commented 7 years ago

how can setNextweek and setPervious on button ckick

we want to Forward and back week same as moveToNextdata and moveToPreviousdata

waqasebmacs commented 4 years ago

private void NextDate() {

    for (int i = 0; i < 7; i++) {

        formattedDate = df.format(myCalendar.getTime());
        myCalendar.add(DAY_OF_WEEK, 1);
        weekCalendar.moveToNext();
        datetimetext.setText((CharSequence) formattedDate);
    }