• Stars
    star
    413
  • Rank 101,599 (Top 3 %)
  • Language
    Kotlin
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collapsible CalendarView is a simple calendar view which can be collapsed to save space and can be expanded when needed

alt text

forthebadge

Buy Me a Coffee at ko-fi.com

Not being maintained. PRs are welcome

Android Arsenal

Version

Installation

  • Gradle

    Add it in your root build.gradle at the end of repositories:

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

    Add the dependency in your app build.gradle

     dependencies {
     		implementation 'com.github.shrikanth7698:Collapsible-Calendar-View-Android:v1.0.3'
     	}
  • Maven

    Add the JitPack repository to your build file

     <repositories>
     	<repository>
     	    <id>jitpack.io</id>
     	    <url>https://jitpack.io</url>
     	</repository>
     </repositories>

    Add the dependency

     <dependency>
         <groupId>com.github.shrikanth7698</groupId>
         <artifactId>Collapsible-Calendar-View-Android</artifactId>
         <version>v1.0.0</version>
     </dependency>

Usage

Drop the Collapsible CalendarView in your XML layout as is shown below:

    <com.shrikanthravi.collapsiblecalendarview.widget.CollapsibleCalendar
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/calendarView">
    </com.shrikanthravi.collapsiblecalendarview.widget.CollapsibleCalendar>

And then in your Activity or fragment

final CollapsibleCalendar collapsibleCalendar = findViewById(R.id.calendarView);
        collapsibleCalendar.setCalendarListener(new CollapsibleCalendar.CalendarListener() {
            @Override
            public void onDaySelect() {
                Day day = viewCalendar.getSelectedDay();
                Log.i(getClass().getName(), "Selected Day: "
                        + day.getYear() + "/" + (day.getMonth() + 1) + "/" + day.getDay());
            }

            @Override
            public void onItemClick(View view) {

            }

            @Override
            public void onDataUpdate() {

            }

            @Override
            public void onMonthChange() {

            }

            @Override
            public void onWeekChange(int i) {

            }
        });

Customization

           <com.shrikanthravi.collapsiblecalendarview.widget.CollapsibleCalendar
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:primaryColor="@color/google_red"
                app:textColor="@android:color/white"
                app:selectedItem_textColor="@color/google_red"
                app:todayItem_textColor="@android:color/white"
                app:todayItem_background="@drawable/circle_white_stroke_background"
                app:selectedItem_background="@drawable/circle_white_solid_background"
                app:buttonLeft_drawableTintColor="@android:color/white"
                app:buttonRight_drawableTintColor="@android:color/white"
                app:expandIconColor="@android:color/white">
          </com.shrikanthravi.collapsiblecalendarview.widget.CollapsibleCalendar>

License

MIT License

Copyright (c) 2018 Shrikanth Ravi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More Repositories

1

Custom-Navigation-Drawer

Custom Navigation Drawer Library for Android
Java
456
star
2

ChatView

This is an Android library which can be used to add chat functionality to your android application with just a few lines of code.
Java
219
star
3

Zinger-Android-App

Zinger is an android app to order food within a campus, tech park or mall with many outlets to avoid long waiting time or get it delivered anywhere within a specific place
Kotlin
124
star
4

Night-Mode-Button

Easy to use night mode button with cool animation
Java
74
star
5

Cinema-App-Concept

Movie Ticket booking app (Concept)
Java
49
star
6

Newslly

Newslly is a news app that gives you latest and best news from multiple sources so you no longer need to swap between apps to stay informed.
Java
38
star
7

Musync

This is an app which lets you sync your currently playing music realtime with your friend through hotspot
Java
21
star
8

Always-On-Display

Always On Display app for Amoled Phones
Java
14
star
9

INDIA-COVID-19-Tracker

An Android Application written in kotlin with MVVM Architecture using Koin, ViewModel, LiveData, Coroutines and Retrofit to track Covid-19 Cases in India.
Kotlin
14
star
10

Truecaller-Style-Incoming-Call-Notification

This an app which will display the card which contains contact details (phone number, contact photo, contact name) of the incoming call. If the incoming call number is already in saved contacts, it will display the card containing the above mentioned details. Otherwise it will show only the number and a message "Unknown number" .
Java
11
star
11

Circular-Progress-Bar

Java
9
star
12

Movie-Ticket-Time-Selection-View

Movie Time Selection View Library for Android
Java
9
star
13

Notepad-app-kotlin

Simple Notepad app in kotlin
Kotlin
9
star
14

Chat-UI-Compose

Highly customizable modular compose UI components for chat.
Kotlin
9
star
15

Android-Samples

Lab exercises for 6th Sem Android Lab (Anna University)
Java
8
star
16

Smart-Mirror-App

This a simple app to display useful information such as news, weather, and your reminders on a tablet or any android phone that is mounted behind a two way mirror so that the text appears to float on the surface of the mirror.
Java
7
star
17

ios-style-Calculator

ios style Calculator App for Android
Java
6
star
18

Sound-Studio-App

This is for CRED Mobile Developer Challenge
Java
6
star
19

Alignment-Button

Text Alignment Button - Android
Java
4
star
20

Plotholes-Android

Project submission for MSHack 2019
Java
4
star
21

Circle-Progress-Bar

Circular progress bar with StickMan running animation
Java
3
star
22

shrikanth7698.github.io

HTML
2
star
23

Madlab-experiments

Lab exercises for 6th Sem Android Lab (Anna University)
Java
2
star
24

Twitter-Sentiment-Analysis

Sentiment analysis on tweets posted about demonetization using Vader sentiment analysis tool. This analysis also simulates a live Graph which shows positive and negative tweets over time.
Jupyter Notebook
1
star
25

Droneware

Web programming lab mini project
HTML
1
star
26

LiveTrack

Android app to find information about MTC buses - Get details regarding current location of a bus at any point of time, the seats available and a list of all buses that ply from source to destination.
Java
1
star
27

TrippyDroid

Java
1
star