From db069c8fab9efc4d81209d945dae84a208605c12 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 Dec 2015 16:23:29 +0500 Subject: [PATCH] version 1.0.3 and added day locale --- README.md | 11 +++++++---- sample/build.gradle | 3 ++- sample/src/main/java/noman/sample/MainActivity.java | 1 + weekcalendar/build.gradle | 8 ++++---- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 227b77d..82e65ba 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +

WeekCalendar is a library which provides a weekly calendar.

The sample project includes the usage of the library. @@ -10,7 +11,7 @@ Feel free to fork or issue pull requests on github. Issues can be reported on th [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-WeekCalendar-green.svg?style=true)](https://android-arsenal.com/details/1/2905) -

Demo

+

Demo

@@ -24,7 +25,7 @@ Feel free to fork or issue pull requests on github. Issues can be reported on th
Gradle
dependencies { - compile 'noman.weekcalendar:weekcalendar:1.0.1' + compile 'noman.weekcalendar:weekcalendar:1.0.3' }
Maven
@@ -60,6 +61,7 @@ There are a few xml attributes to customise the calendar. If you feel that any c - `weekBackgroundColor` - `selectedBgColor` - `todaysDateBgColor` + - `dayNameLength` ---------- @@ -71,7 +73,8 @@ There are a few xml attributes to customise the calendar. If you feel that any c android:layout_height="65dp" android:background="@color/colorPrimary" app:numOfPages="150" - app:todaysDateBgColor="#ffffffff"/> + app:dayNameLength="threeLetters" + app:todaysDateBgColor="#ffffff"/>
Explained
@@ -84,6 +87,7 @@ There are a few xml attributes to customise the calendar. If you feel that any c - `weekBackgroundColor` same as `daysBackgroundColor` - `selectedBgColor` By default, its color is set to be `colorAccent`, if you've that attribute in attribute in `color.xml`, then the backgroud color will be that one. Otherwise the pink color shown in the demo. - `todaysDateBgColor` todays date background color, same as `selectedBgColor`. + - `dayNameLength` week day name length, `singleLetter` means (S,M,T..) and `threeLetters` means (Sun, Mun, Tue..) ---------- @@ -128,4 +132,3 @@ There are a few xml attributes to customise the calendar. If you feel that any c limitations under the License. - diff --git a/sample/build.gradle b/sample/build.gradle index 22a9d6a..a5972ea 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -23,7 +23,8 @@ dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' - compile project(':weekcalendar') + compile 'noman.weekcalendar:weekcalendar:1.0.3' + //compile project(':weekcalendar') } diff --git a/sample/src/main/java/noman/sample/MainActivity.java b/sample/src/main/java/noman/sample/MainActivity.java index 76c65e0..1c7a914 100644 --- a/sample/src/main/java/noman/sample/MainActivity.java +++ b/sample/src/main/java/noman/sample/MainActivity.java @@ -66,6 +66,7 @@ public void onNextClick(View veiw) { weekCalendar.moveToNext(); } + public void onPreviousClick(View view) { weekCalendar.moveToPrevious(); } diff --git a/weekcalendar/build.gradle b/weekcalendar/build.gradle index a8e0e68..07bf899 100644 --- a/weekcalendar/build.gradle +++ b/weekcalendar/build.gradle @@ -28,7 +28,7 @@ dependencies { } group = 'noman.weekcalendar' -version = '1.0.2' +version = '1.0.3' task generateSourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs @@ -49,16 +49,16 @@ generateJavaDocsJar.dependsOn generateJavaDocs bintray { user = 'nomanrafique' - key = 'KEY' + key = '96f03814bf5e49248c5138481f533a64da9df96a' pkg { repo = 'maven' name = 'weekcalendar' version { - name = '1.0.2' + name = '1.0.3' desc = 'WeekCalendar' released = new Date() - vcsTag = '1.0.2' + vcsTag = '1.0.3' } licenses = ['Apache-2.0']