Skip to content

Commit

Permalink
version 1.0.3 and added day locale
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Dec 16, 2015
1 parent 987814d commit db069c8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<br/><br/><img src="https://raw.githubusercontent.com/nomanr/WeekCalendar/master/images/cover.png">
<p><b>WeekCalendar</b> is a library which provides a weekly calendar. </p>
The sample project includes the usage of the library.
Expand All @@ -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)


<h3>Demo<h3/>
<h3>Demo</h3>

<img src="https://raw.githubusercontent.com/nomanr/WeekCalendar/master/images/gif.gif"width="400">

Expand All @@ -24,7 +25,7 @@ Feel free to fork or issue pull requests on github. Issues can be reported on th
<h5>Gradle</h5>

dependencies {
compile 'noman.weekcalendar:weekcalendar:1.0.1'
compile 'noman.weekcalendar:weekcalendar:1.0.3'
}

<h5>Maven</h5>
Expand Down Expand Up @@ -60,6 +61,7 @@ There are a few xml attributes to customise the calendar. If you feel that any c
- `weekBackgroundColor`
- `selectedBgColor`
- `todaysDateBgColor`
- `dayNameLength`

----------

Expand All @@ -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"/>

<h5>Explained</h5>

Expand All @@ -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..)


----------
Expand Down Expand Up @@ -128,4 +132,3 @@ There are a few xml attributes to customise the calendar. If you feel that any c
limitations under the License.



3 changes: 2 additions & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

}

Expand Down
1 change: 1 addition & 0 deletions sample/src/main/java/noman/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public void onNextClick(View veiw) {
weekCalendar.moveToNext();
}


public void onPreviousClick(View view) {
weekCalendar.moveToPrevious();
}
Expand Down
8 changes: 4 additions & 4 deletions weekcalendar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']
Expand Down

0 comments on commit db069c8

Please sign in to comment.