About the Download

Ti.MaterialCalendarView

Ti.MaterialCalendarView is a wrapper for the Material-calendarview Android module.

It will add a full calendar with animation and events (currently: select day).

cal

 

README

These instructions are being shipped with the module, so you can check later on your README file.

Ti.MaterialCalendarView

This HyperLoop module allows you to create a full calendar with animations and events.

Requirements

This project uses HyperLoop. We recommend you to read the basics of HyperLoop in the links below before proceeding any further in this README.
iOS: Hyperloop_for_iOS-Programming_Guide
Android: Hyperloop_for_Android_Programming_Guide

HyperLoop does a pretty good job in allowing you to use Objective-C / Swift with Javascript syntax, but that doesn’t mean that you won’t
need to learn Objective-C / Swift if you want to customise the module / create your own. For that reason we highly recommend you to
learn the basics of Objective-C / Swift.
In the long run that will make your job easier, since Objective-C is far from being an easy language to understand at the first sight.

Environment setup

This module was tested and developed with the following environment:

  • Titanium SDK 5.4.0.GA
  • HyperLoop 1.2.5

Creating a HyperLoop-enabled project

  • Create a new Alloy project like you would normally do.
  • Take a look at the example tiapp.xml file that you’ve received from us. Your tiapp.xml should have the same properties defined in this example
    otherwise you’ll face some issues while building your project later on. Remember to change the GUID AND PROJECT ID!
  • Copy the files provided in the “app” folder to your project’s “app” folder as well.

Usage

Inside the official manual you’ll find many methods you can use to adjust the look and feel of the view. E.g. to set the color of the selected day you can use

mcv.setSelectionColor(Color.parseColor("#ff6600"));

Colors

Use app/platform/android/res/color/mcv_text_date_light.xml to adjust the colors like current month days, other month days, etc.

Events

The onDateSelected will return the selected date as a CalendarDay.

Support

One of the things we want to offer you as a reward for joining LoopModules is the ability to contact us to discuss and get help with problems that you may come across.
We’ve tested this module a lot of times and we want to deliver something that will work for everyone (as long as the environments are the same, e.g. SDK, HL version, and so on).
If you come across one of the following:

  • Bugs
  • Suggestions
  • Issues while compiling this module

Feel free to contact us at contact@loopmodules.com or even contact the main developer of this module on Twitter.