All Projects → sickmartian → Calendarview

sickmartian / Calendarview

Calendar View Library

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Calendarview

Nestedtouchscrollinglayout
🎱处理子 View,父 View 嵌套滚动,成本比 support v4 NestedScrolling 低,放心食用~
Stars: ✭ 557 (+684.51%)
Mutual labels:  view, viewgroup
Androidlibs
🔥正在成为史上最全分类 Android 开源大全~~~~(长期更新 Star 一下吧)
Stars: ✭ 7,148 (+9967.61%)
Mutual labels:  library, view
Chips Input Layout
A customizable Android ViewGroup for displaying Chips (specified in the Material Design Guide).
Stars: ✭ 591 (+732.39%)
Mutual labels:  view, viewgroup
Bouncylayout
Make. It. Bounce.
Stars: ✭ 4,035 (+5583.1%)
Mutual labels:  library, view
Monthyearpicker
Fancy year and month picker library for your android app
Stars: ✭ 36 (-49.3%)
Mutual labels:  library, calendar
Weatherview
WeatherView is an Android Library let you make cool weather animations for your app
Stars: ✭ 426 (+500%)
Mutual labels:  library, view
Tabulate
Table Maker for Modern C++
Stars: ✭ 862 (+1114.08%)
Mutual labels:  library, view
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (-35.21%)
Mutual labels:  view, viewgroup
Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-49.3%)
Mutual labels:  library, view
Fillingbutton
🔥Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-56.34%)
Mutual labels:  library, view
Material Calendar View
📅 Material Design Calendar compatible with API 11+
Stars: ✭ 360 (+407.04%)
Mutual labels:  library, calendar
Mindo
Generate mind maps easily in your android app.
Stars: ✭ 52 (-26.76%)
Mutual labels:  library, view
Calendar Base
Base methods for generating calendars using JavaScript.
Stars: ✭ 342 (+381.69%)
Mutual labels:  library, calendar
Popview Android
Pop animation with circular dust effect for any view updation
Stars: ✭ 487 (+585.92%)
Mutual labels:  library, view
Incrementproductview
Interesting concept of products incrementation
Stars: ✭ 262 (+269.01%)
Mutual labels:  library, view
Crab
JavaScript library for building user interfaces with Custom Elements, Shadow DOM and React like API
Stars: ✭ 22 (-69.01%)
Mutual labels:  library, view
CoolView
一些炫酷的自定义控件(Some cool custom controls),逐步完善中...
Stars: ✭ 63 (-11.27%)
Mutual labels:  view, viewgroup
FlowlayoutTags
具有标签功能的流式布局,接口简单。可多选单选,可记住选择状态,状态切换有过渡动画。
Stars: ✭ 78 (+9.86%)
Mutual labels:  view, viewgroup
Candyview
Implement any RecyclerView in just 1 Line. CandyView handles everything for you.
Stars: ✭ 15 (-78.87%)
Mutual labels:  library, view
Speedview
Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape ⚡️
Stars: ✭ 1,035 (+1357.75%)
Mutual labels:  library, view

Calendar View Library

A Month and a Week view group to present data.

Features:

  • Customizable colors and text sizes
  • Overflow mark below the day when the views don't fit
  • First day of the week can be set to Sunday, Saturday or Monday

Screenshots

Add to your project using gradle

compile 'com.sickmartian.calendarview:calendarview:1.0.0'

Customizable properties at a glance

  <com.sickmartian.calendarview.MonthView
      xmlns:calendar_view="http://schemas.android.com/apk/res-auto"
      android:layout_below="@+id/control_container"
      calendar_view:textSize="12sp"
      calendar_view:activeTextColor="@color/colorPrimaryText"
      calendar_view:inactiveTextColor="@color/colorSecondaryText"
      calendar_view:activeBackgroundColor="@color/colorCalendarDayBackground"
      calendar_view:selectedBackgroundColor="@color/selectedDayBackground"
      calendar_view:inactiveBackgroundColor="@color/notThisMonthDayBackground"
      calendar_view:currentDayDecorationDrawable="@drawable/current_day_drawable"
      calendar_view:currentDayDecorationSize="24dp"
      calendar_view:currentDayTextColor="@color/colorInvertedText"
      calendar_view:showOverflow="false"
      calendar_view:overflowColor="@color/colorPrimary"
      calendar_view:overflowHeight="2dp"
      calendar_view:separatorColor="@color/colorCalendarDivider"
      android:id="@+id/monthView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"/>

API

The API for getting the pressed, current and/or selected day works via the DayMetadata class. DayMetadata is just a value holder for the day, month and year. It takes the months of the year starting with 1 (so January is 1, December is 12, like joda-time does)

Some methods also have a Calendar alternative that is just there for convenience, in this case the Day, Month and Year values will be read directly, no timezone awarenes is built in.

Adding views to the view group can be done via the day of the month for the MonthView (addViewToDayInCurrentMonth) or using DayMetadata for the WeekView (addViewToDay).

Alternatively you can use the cell id (addViewToCell), this is not perfect as the state won't be preserved on rotation in some cases but at least allows you to add data to neightbor months when using MonthView.

First day of the week is set like this

  mCalendarView.setFirstDayOfTheWeek(CalendarView.SUNDAY_SHIFT);

In Action

This library powers the Trackendar app that you can find on Google Play download it to see it in a production scenario

Alternatively just clone the repo and submodule using:

git clone --recursive https://github.com/sickmartian/CalendarView.git

The sample app that's on the screenshots can be used to test the library.

License

Copyright 2017 sickmartian

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].