nomanr / Weekcalendar
A simple weekly calendar.
Stars: ✭ 644
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Weekcalendar
OmniList
开源的时间管理App,基于Material Design设计
Stars: ✭ 61 (-90.53%)
Mutual labels: calendar, android-application
React Native Calendar Strip
Easy to use and visually stunning calendar component for React Native.
Stars: ✭ 627 (-2.64%)
Mutual labels: calendar
Quill
👻 [MOVED TO https://github.com/TryGhost/Ghost-Android] The beautiful Android app for your Ghost blog.
Stars: ✭ 552 (-14.29%)
Mutual labels: android-application
Calendarpicker
CalendarPicker Component for React Native
Stars: ✭ 568 (-11.8%)
Mutual labels: calendar
React Modern Calendar Datepicker
A modern, beautiful, customizable date picker for React
Stars: ✭ 555 (-13.82%)
Mutual labels: calendar
Superbottomsheet
Android native BottomSheet on steroids 💪
Stars: ✭ 548 (-14.91%)
Mutual labels: android-application
Flutter calendar carousel
Calendar widget for flutter that is swipeable horizontally. This widget can help you build your own calendar widget highly customizable.
Stars: ✭ 621 (-3.57%)
Mutual labels: calendar
Changedetection
Automatically track websites changes on Android in background.
Stars: ✭ 563 (-12.58%)
Mutual labels: android-application
Mbcalendarkit
An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more.
Stars: ✭ 561 (-12.89%)
Mutual labels: calendar
Survivalmanual
Libre Survival Manual for Android with offline in mind
Stars: ✭ 560 (-13.04%)
Mutual labels: android-application
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (-4.04%)
Mutual labels: android-application
Appiconnamechanger
Library to change Android launcher App Icon and App Name programmatically !
Stars: ✭ 555 (-13.82%)
Mutual labels: android-application
Android Job
Android library to handle jobs in the background.
Stars: ✭ 5,378 (+735.09%)
Mutual labels: android-application
Workalendar
Worldwide holidays and workdays computational toolkit.
Stars: ✭ 549 (-14.75%)
Mutual labels: calendar
Fasthub
FastHub the ultimate GitHub client for Android.
Stars: ✭ 5,543 (+760.71%)
Mutual labels: android-application
Gitclub
An elegent Android Client for Github. 不仅仅是Github客户端,而且是一个发现优秀Github开源项目的app
Stars: ✭ 638 (-0.93%)
Mutual labels: android-application
Animationsplayground
This repo is an attempt to implement a complex animation
Stars: ✭ 630 (-2.17%)
Mutual labels: android-application
I AM NOT WORKING ON THIS LIBRARY ANYMORE. I AM NOT VERY PROUD OF THEY WAY I WROTE THIS WIDGET 😁. I WOULD RECOMMEND TO USE CALENDAR AS A CUSTOM VIEW INSTEAD OF ADDING IT AS GRADLE DEPENDENCY. FORKS + PRS ARE WELCOME.
WeekCalendar is a library which provides a weekly calendar.
The sample project includes the usage of the library. Support for Android 4.0 and up.Feel free to fork or issue pull requests on github. Issues can be reported on the github issue tracker.
Demo
Setup
Gradle
dependencies {
compile 'noman.weekcalendar:weekcalendar:1.0.6'
}
Maven
<dependency>
<groupId>noman.weekcalendar</groupId>
<artifactId>weekcalendar</artifactId>
<version>1.0.6</version>
</dependency>
Sample Usage
<noman.weekcalendar.WeekCalendar
android:id="@+id/weekCalendar"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@color/colorPrimary"/>
There are a few xml attributes to customise the calendar. If you feel that any customization option is missing, let me know. Theme the calendar
numOfPages
daysTextSize
daysTextColor
daysBackgroundColor
weekTextSize
weekTextColor
weekBackgroundColor
selectedBgColor
todaysDateBgColor
todaysDateTextColor
dayNameLength
hideNames
Example
<noman.weekcalendar.WeekCalendar
android:id="@+id/weekCalendar"
android:layout_width="match_parent"
android:layout_height="65dp"
android:background="@color/colorPrimary"
app:numOfPages="150"
app:dayNameLength="threeLetters"
app:todaysDateBgColor="#ffffff"
app:todaysDateTextColor="#000000"/>
Explained
-
numOfPages
by default, calendar has 100 pages. You can scroll 49 to left and 49 to right. Using this attribute you can set number of pages. You can send it to 1000, it depends on requirements. -
daysTextSize
day means day of the month. By default text size is17sp
. -
daysTextColor
by default the day text color is set to be white. -
daysBackgroundColor
if you havecolorPrimary
attribute incolor.xml
, then the backgroud color will be that one. Otherwise the purple color shown in the demo. -
weekTextSize
week means day of the week,i.e (S,M,T ..). By default text size is17sp
. -
weekTextColor
by default the week day text color is set to be white. -
weekBackgroundColor
same asdaysBackgroundColor
-
selectedBgColor
By default, its color is set to becolorAccent
, if you've that attribute in attribute incolor.xml
, then the backgroud color will be that one. Otherwise the pink color shown in the demo. -
todaysDateBgColor
todays date background color, same asselectedBgColor
. -
todaysDateTextColor
todays date text color, by default the text color is set to be white. -
dayNameLength
week day name length,singleLetter
means (S,M,T..) andthreeLetters
means (Sun, Mun, Tue..) -
hideNames
, set this attribute to hide name of week days.
`OnDateClickListener` returns `DateTime` object. `DateTime` is class available in Impelement Listener Joda Time. I will recommend using this library if you are playing with date and time.
weekCalendar.setOnDateClickListener(new OnDateClickListener() {
@Override
public void onDateClick(DateTime dateTime) {
Toast.makeText(MainActivity.this,
"You Selected " + dateTime.toString(), Toast.LENGTH_SHORT).show();
}
});
See the sample project for usage of methods like
reset()
moveToNext()
moveToPrevious()
setSelectedDate(DateTime)
setStartDate(DateTime)
Libraries Used
License
Copyright (c) 2015 Noman Rafique
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].