Skip to content

Commit 0f2acef

Browse files
AndroidDeveloperLBhermansje
authored andcommitted
-updated sdks
-added ability to scroll whole view (entire week, for example) like a ViewPager. -made default first day of week to be the one of the calendar.
1 parent 3f94c1c commit 0f2acef

File tree

5 files changed

+75
-74
lines changed

5 files changed

+75
-74
lines changed

build.gradle

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.3'
9+
classpath 'com.android.tools.build:gradle:3.2.0-alpha13'
910

1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
@@ -19,5 +20,6 @@ allprojects {
1920

2021
repositories {
2122
jcenter()
23+
google()
2224
}
2325
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sun Aug 06 18:02:35 CEST 2017
1+
#Mon May 07 11:03:02 IDT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

library/build.gradle

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,20 @@ repositories {
55
}
66

77
android {
8-
compileSdkVersion 25
9-
buildToolsVersion '25.0.2'
8+
compileSdkVersion 27
109

1110
defaultConfig {
12-
minSdkVersion 9
13-
targetSdkVersion 25
11+
minSdkVersion 14
12+
targetSdkVersion 27
1413
}
1514
}
1615

1716
configurations {
1817
javadocDeps
1918
}
2019
dependencies {
21-
compile 'com.android.support:appcompat-v7:25.1.0'
22-
javadocDeps 'com.android.support:appcompat-v7:25.1.0'
20+
compile 'com.android.support:appcompat-v7:27.1.1'
21+
javadocDeps 'com.android.support:appcompat-v7:27.1.1'
2322
}
2423

25-
apply from: 'gradle-mvn-push.gradle'
24+
apply from: 'gradle-mvn-push.gradle'

library/src/main/res/values/attrs.xml

+61-60
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,70 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<declare-styleable name="WeekView">
4-
<attr name="allDayEventHeight" format="dimension" />
5-
<attr name="autoLimitTime" format="boolean" />
6-
<attr name="columnGap" format="dimension" />
7-
<attr name="dayBackgroundColor" format="color" />
4+
<attr name="allDayEventHeight" format="dimension"/>
5+
<attr name="autoLimitTime" format="boolean"/>
6+
<attr name="columnGap" format="dimension"/>
7+
<attr name="dayBackgroundColor" format="color"/>
88
<attr name="dayNameLength" format="enum">
9-
<enum name="length_short" value="1" />
10-
<enum name="length_long" value="2" />
9+
<enum name="length_short" value="1"/>
10+
<enum name="length_long" value="2"/>
1111
</attr>
12-
<attr name="eventCornerRadius" format="dimension" />
13-
<attr name="eventMarginVertical" format="dimension" />
14-
<attr name="eventPadding" format="dimension" />
15-
<attr name="eventTextColor" format="color" />
16-
<attr name="eventTextSize" format="dimension" />
12+
<attr name="eventCornerRadius" format="dimension"/>
13+
<attr name="eventMarginVertical" format="dimension"/>
14+
<attr name="eventPadding" format="dimension"/>
15+
<attr name="eventTextColor" format="color"/>
16+
<attr name="eventTextSize" format="dimension"/>
1717
<attr name="firstDayOfWeek" format="enum">
18-
<enum name="sunday" value="1" />
19-
<enum name="monday" value="2" />
20-
<enum name="tuesday" value="3" />
21-
<enum name="wednesday" value="4" />
22-
<enum name="thursday" value="5" />
23-
<enum name="friday" value="6" />
24-
<enum name="saturday" value="7" />
18+
<enum name="sunday" value="1"/>
19+
<enum name="monday" value="2"/>
20+
<enum name="tuesday" value="3"/>
21+
<enum name="wednesday" value="4"/>
22+
<enum name="thursday" value="5"/>
23+
<enum name="friday" value="6"/>
24+
<enum name="saturday" value="7"/>
2525
</attr>
26-
<attr name="futureBackgroundColor" format="color" />
27-
<attr name="futureWeekendBackgroundColor" format="color" />
28-
<attr name="headerColumnBackground" format="color" />
29-
<attr name="headerColumnPadding" format="dimension" />
30-
<attr name="headerColumnTextColor" format="color" />
31-
<attr name="headerRowBackgroundColor" format="color" />
32-
<attr name="headerRowPadding" format="dimension" />
33-
<attr name="horizontalFlingEnabled" format="boolean" />
34-
<attr name="hourHeight" format="dimension" />
35-
<attr name="hourSeparatorColor" format="color" />
36-
<attr name="hourSeparatorHeight" format="dimension" />
37-
<attr name="maxHourHeight" format="dimension" />
38-
<attr name="maxTime" format="integer" />
39-
<attr name="minHourHeight" format="dimension" />
40-
<attr name="minTime" format="integer" />
41-
<attr name="minOverlappingMinutes" format="integer" />
42-
<attr name="newEventColor" format="color" />
43-
<attr name="newEventId" format="integer" />
44-
<attr name="newEventIdentifier" format="string" />
45-
<attr name="newEventIconResource" format="integer" />
46-
<attr name="newEventLengthInMinutes" format="integer" />
47-
<attr name="newEventTimeResolutionInMinutes" format="integer" />
48-
<attr name="noOfVisibleDays" format="integer" />
49-
<attr name="nowLineColor" format="color" />
50-
<attr name="nowLineThickness" format="dimension" />
51-
<attr name="overlappingEventGap" format="dimension" />
52-
<attr name="pastBackgroundColor" format="color" />
53-
<attr name="pastWeekendBackgroundColor" format="color" />
54-
<attr name="scrollDuration" format="integer" />
55-
<attr name="showDistinctPastFutureColor" format="boolean" />
56-
<attr name="showDistinctWeekendColor" format="boolean" />
57-
<attr name="showFirstDayOfWeekFirst" format="boolean" />
58-
<attr name="showNowLine" format="boolean" />
59-
<attr name="textSize" format="dimension" />
60-
<attr name="timeColumnResolution" format="integer" />
61-
<attr name="todayBackgroundColor" format="color" />
62-
<attr name="todayHeaderTextColor" format="color" />
63-
<attr name="verticalFlingEnabled" format="boolean" />
64-
<attr name="xScrollingSpeed" format="float" />
65-
<attr name="zoomFocusPoint" format="fraction" />
66-
<attr name="zoomFocusPointEnabled" format="boolean" />
67-
<attr name="dropListenerEnabled" format="boolean" />
26+
<attr name="futureBackgroundColor" format="color"/>
27+
<attr name="futureWeekendBackgroundColor" format="color"/>
28+
<attr name="headerColumnBackground" format="color"/>
29+
<attr name="headerColumnPadding" format="dimension"/>
30+
<attr name="headerColumnTextColor" format="color"/>
31+
<attr name="headerRowBackgroundColor" format="color"/>
32+
<attr name="headerRowPadding" format="dimension"/>
33+
<attr name="horizontalFlingEnabled" format="boolean"/>
34+
<attr name="hourHeight" format="dimension"/>
35+
<attr name="hourSeparatorColor" format="color"/>
36+
<attr name="hourSeparatorHeight" format="dimension"/>
37+
<attr name="maxHourHeight" format="dimension"/>
38+
<attr name="maxTime" format="integer"/>
39+
<attr name="minHourHeight" format="dimension"/>
40+
<attr name="minTime" format="integer"/>
41+
<attr name="minOverlappingMinutes" format="integer"/>
42+
<attr name="newEventColor" format="color"/>
43+
<attr name="newEventId" format="integer"/>
44+
<attr name="newEventIdentifier" format="string"/>
45+
<attr name="newEventIconResource" format="integer"/>
46+
<attr name="newEventLengthInMinutes" format="integer"/>
47+
<attr name="newEventTimeResolutionInMinutes" format="integer"/>
48+
<attr name="noOfVisibleDays" format="integer"/>
49+
<attr name="nowLineColor" format="color"/>
50+
<attr name="nowLineThickness" format="dimension"/>
51+
<attr name="overlappingEventGap" format="dimension"/>
52+
<attr name="pastBackgroundColor" format="color"/>
53+
<attr name="pastWeekendBackgroundColor" format="color"/>
54+
<attr name="scrollDuration" format="integer"/>
55+
<attr name="showDistinctPastFutureColor" format="boolean"/>
56+
<attr name="showDistinctWeekendColor" format="boolean"/>
57+
<attr name="showFirstDayOfWeekFirst" format="boolean"/>
58+
<attr name="showNowLine" format="boolean"/>
59+
<attr name="textSize" format="dimension"/>
60+
<attr name="timeColumnResolution" format="integer"/>
61+
<attr name="todayBackgroundColor" format="color"/>
62+
<attr name="todayHeaderTextColor" format="color"/>
63+
<attr name="verticalFlingEnabled" format="boolean"/>
64+
<attr name="xScrollingSpeed" format="float"/>
65+
<attr name="zoomFocusPoint" format="fraction"/>
66+
<attr name="zoomFocusPointEnabled" format="boolean"/>
67+
<attr name="dropListenerEnabled" format="boolean"/>
68+
<attr name="isScrollNumberOfVisibleDays" format="boolean"/>
6869
</declare-styleable>
6970
</resources>

sample/build.gradle

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion '25.0.2'
4+
compileSdkVersion 27
65

76
defaultConfig {
87
applicationId "com.alamkanak.weekview"
98
minSdkVersion 14
10-
targetSdkVersion 25
9+
targetSdkVersion 27
1110
versionCode 1
1211
versionName "1.0"
1312
}
@@ -22,6 +21,6 @@ android {
2221
dependencies {
2322
compile fileTree(dir: 'libs', include: ['*.jar'])
2423
compile project(':library')
25-
compile 'com.android.support:appcompat-v7:25.1.0'
24+
compile 'com.android.support:appcompat-v7:27.1.1'
2625
compile 'com.squareup.retrofit:retrofit:1.9.0'
2726
}

0 commit comments

Comments
 (0)