Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Sample App README file #1139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 60 additions & 1 deletion sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,63 @@ Material CalendarView Sample App
================================

The sample app contains a mixture of implementations to help test and debug during development,
and to help new users understand how to implement some functionality.
and to help new users understand how to implement some functionality.

# Basic Example
<img src="images/00-Basic Example.gif" alt="Basic Example" width="300px" />

# Calendar Selection Modes
<img src="images/01-Calendar Selection Modes.gif" alt="Calendar Selection Modes" width="300px" />

- Used XML to achieve effect: `app:mcv_selectionMode`

# Calendar with Decorators
<img src="images/02-Calendar with Decorators.gif" alt="Calendar with Decorators" width="300px" />

- Used Decorators to achieve effect: [decorator documentation](https://github.com/prolificinteractive/material-calendarview/wiki/Decorators)

# Calendar with Dynamic Modes
<img src="images/03-Calendar with Dynamic Modes.gif" alt="Calendar with Dynamic Modes" width="300px" />

- Used function to achieve month to day effect: `widget.state().edit().setCalendarDisplayMode(CalendarMode.WEEKS)`

# Disabled Days Example
<img src="images/04-Disabled Days Example.gif" alt="Disabled Days Example" width="300px" />

- Used Decorators to achieve disabled days effect: [decorator documentation](https://github.com/prolificinteractive/material-calendarview/wiki/Decorators)

# XML Customization Example
<img src="images/05-XML Customization Example.gif" alt="XML Customization Example" width="300px" />

- Used XML to achieve effect: [all customizations](https://github.com/prolificinteractive/material-calendarview/blob/master/sample/src/main/res/layout/activity_customization.xml)

# Programmatic Customization Example
- Used functions to achieve same effect as XML: [all customizations](https://github.com/prolificinteractive/material-calendarview/blob/master/sample/src/main/java/com/prolificinteractive/materialcalendarview/sample/CustomizeCodeActivity.java)

# Dynamic Setters Test
<img src="images/07-Dynamic Setters Test.gif" alt="Dynamic Setters Test" width="300px" />

- Extensive changes made programmatically: [java file](https://github.com/prolificinteractive/material-calendarview/blob/master/sample/src/main/java/com/prolificinteractive/materialcalendarview/sample/DynamicSettersActivity.java)

# Custom tile width/height
<img src="images/08-Custom tile width height.gif" alt="Custom tile width height" width="300px" />

- Used functions to achieve effect: `setTileSize`, `setTileWidth`, `setTileHeight`

# Calendar in Dialogs
<img src="images/09-Calendar in Dialogs.gif" alt="Calendar in Dialogs" width="300px" />

- Used Dialog Fragments: [java file](https://github.com/prolificinteractive/material-calendarview/blob/master/sample/src/main/java/com/prolificinteractive/materialcalendarview/sample/DialogsActivity.java)

# Multiple Basic Calendars
<img src="images/10-Multiple Basic Calendars.gif" alt="Multiple Basic Calendars" width="300px" />

# Many-Sized Calendars
<img src="images/11-Many-Sized Calendars.gif" alt="Many-Sized Calendars" width="300px" />

- Used XML to achieve effect: `android:layout_width`, `android:layout_height`, `app:mcv_tileSize`, `app:mcv_tileWidth`, `app:mcv_tileHeight`

# Calendar with Getters
<img src="images/12-Calendar with Getters.gif" alt="Calendar with Getters" width="300px" />

- Used functions to achieve effect: `getCurrentDate`, `getSelectedDate`, `getSelectedDates`, `getSelectionMode`
Binary file added sample/images/00-Basic Example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/01-Calendar Selection Modes.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/02-Calendar with Decorators.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/03-Calendar with Dynamic Modes.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/04-Disabled Days Example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/05-XML Customization Example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/07-Dynamic Setters Test.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/08-Custom tile width height.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/09-Calendar in Dialogs.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/10-Multiple Basic Calendars.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/11-Many-Sized Calendars.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sample/images/12-Calendar with Getters.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.