Code Monkey home page Code Monkey logo

eventcalender's Introduction

CalenderEvent

This is the simple library of calender, where you can set event on specific date. And this calender you can customize all section.

For this version we are not set any off or holiday We will add in next version. So this library is simple to use.

Sample Alt Text

Following instructions you have to follow to use Expandable Card view

Root Gradle

    allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

App Gradle:

dependencies {
	   implementation 'com.github.mahimrocky:EventCalender:v1.0.0'
	}

XML Section

    <com.skyhope.eventcalenderlibrary.CalenderEvent
        android:id="@+id/calender_event"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
</android.support.constraint.ConstraintLayout>

By below options you can change or customize the view

Attributes Purpose
app:selector_color To change Selector color
app:current_month_day_color To change current month days color
app:off_month_day_colorr To change off month days color
app:week_name_color To change week name color (sun,mon etc)
app:month_colorn To change month title color
app:next_icon To change next month icon
app:previous_icon To change previous month icon
app:app:calender_background To change total calender background color
app:selected_day_text_color To selected day text color

How to set event?

CalenderEvent calenderEvent = findViewById(R.id.calender_event);
Event event = new Event(calendar.getTimeInMillis(), "Test");
// to set desire day time milli second in first parameter
//or you set color for each event
Event event = new Event(calendar.getTimeInMillis(), "Test",Color.RED);
calenderEvent.addEvent(event);

for remove event you can call

    calenderEvent.removeEvent(event);

for each item click get all date or event. Below section you will get event,time,date. Remember dayContainerModel.getEvent() give you null if you don`t set any event so check dayContainerModel.isHaveEvent()

 calenderEvent.initCalderItemClickCallback(new CalenderDayClickListener() {
            @Override
            public void onGetDay(DayContainerModel dayContainerModel) {
                Log.d(TAG, dayContainerModel.getDate());
            }
        });

Happy Coding

eventcalender's People

Contributors

mahimrocky avatar w3-tariqul avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.