Skip to content

This is a view implemented with ViewPager and GridView,You can use it to display a normal calendar or show other info on the calendar(example price ..)

Notifications You must be signed in to change notification settings

yissan/CalendarView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c4fa78 · Dec 20, 2018

History

14 Commits
Nov 17, 2016
Nov 17, 2016
Nov 16, 2016
Nov 16, 2016
Nov 17, 2016
Nov 16, 2016
Dec 20, 2018
Nov 16, 2016
Nov 16, 2016
Nov 16, 2016
Nov 16, 2016
Nov 16, 2016
Nov 16, 2016

Repository files navigation

CalendarView

This is a view implemented with ViewPager and GridView,You can use it to display a normal calendar or show other info on the calendar(example price ..)

simple show calendar view

这里写图片描述

more info calendar view

这里写图片描述

gif

这里写图片描述

simple usage

1、declare view in .xml

 <com.qiangyu.test.commoncalendarview.view.CommonCalendarView
        android:id="@+id/calendarView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">
    </com.qiangyu.test.commoncalendarview.view.CommonCalendarView>

2、get CalendarView and init it

public class SimpleCalendarActivity extends AppCompatActivity {

    private  CommonCalendarView calendarView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_simple_calendar);
        this.calendarView = (CommonCalendarView) findViewById(R.id.calendarView);
        this.calendarView.setMinDate(DateUtils.stringtoDate("1937-01-01","yyyy-MM-dd"));//minimum date for calendarview to show;
        this.calendarView.setMaxDate(DateUtils.stringtoDate("2100-01-22","yyyy-MM-dd"));//max date for calendarview to show;
        this.calendarView.init(null);
    }
}

About

This is a view implemented with ViewPager and GridView,You can use it to display a normal calendar or show other info on the calendar(example price ..)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages