Skip to content

Commit ddb6ff1

Browse files
authored
Merge pull request dubesar#442 from raghavtalwar7/new_branch
added calendar app
2 parents fa7e2be + a24c23b commit ddb6ff1

File tree

78 files changed

+2165
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2165
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches/build_file_checksums.ser
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
.DS_Store
9+
/build
10+
/captures
11+
.externalNativeBuild

Android Projects/EventCalender/.idea/codeStyles/Project.xml

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Android Projects/EventCalender/.idea/gradle.xml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Android Projects/EventCalender/.idea/misc.xml

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Android Projects/EventCalender/.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Android Projects/EventCalender/.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
2+
# CalenderEvent
3+
4+
This is the simple library of calender, where you can set event on specific date. And this calender you can customize all section.
5+
6+
For this version **we are not set any off or holiday** We will add in next version. So this library is simple to use.
7+
8+
Sample
9+
<img src="https://github.com/mahimrocky/EventCalender/blob/master/screen.png" height="400" with="600">
10+
11+
Following instructions you have to follow to use Expandable Card view
12+
13+
# Root Gradle
14+
```sh
15+
allprojects {
16+
repositories {
17+
...
18+
maven { url 'https://jitpack.io' }
19+
}
20+
}
21+
```
22+
23+
# App Gradle:
24+
25+
```sh
26+
dependencies {
27+
implementation 'com.github.mahimrocky:EventCalender:v1.0.0'
28+
}
29+
```
30+
31+
# XML Section
32+
33+
```sh
34+
<com.skyhope.eventcalenderlibrary.CalenderEvent
35+
android:id="@+id/calender_event"
36+
android:layout_width="match_parent"
37+
android:layout_height="match_parent" />
38+
</android.support.constraint.ConstraintLayout>
39+
```
40+
41+
### By below options you can change or customize the view
42+
43+
| Attributes | Purpose |
44+
| ------ | ------ |
45+
| ```app:selector_color```| To change Selector color|
46+
| ```app:current_month_day_color```| To change current month days color|
47+
| ```app:off_month_day_colorr```| To change off month days color|
48+
| ```app:week_name_color```| To change week name color (sun,mon etc)|
49+
| ```app:month_colorn```| To change month title color|
50+
| ```app:next_icon```| To change next month icon|
51+
| ```app:previous_icon```| To change previous month icon|
52+
| ```app:app:calender_background```| To change total calender background color|
53+
| ```app:selected_day_text_color```| To selected day text color|
54+
55+
### How to set event?
56+
```sh
57+
CalenderEvent calenderEvent = findViewById(R.id.calender_event);
58+
Event event = new Event(calendar.getTimeInMillis(), "Test");
59+
// to set desire day time milli second in first parameter
60+
//or you set color for each event
61+
Event event = new Event(calendar.getTimeInMillis(), "Test",Color.RED);
62+
calenderEvent.addEvent(event);
63+
```
64+
65+
for remove event you can call
66+
```sh
67+
calenderEvent.removeEvent(event);
68+
```
69+
for each item click get all date or event. Below section you will get event,time,date. ***Remember dayContainerModel.getEvent() give you null if you don`t set any event*** so check ***dayContainerModel.isHaveEvent()***
70+
```sh
71+
calenderEvent.initCalderItemClickCallback(new CalenderDayClickListener() {
72+
@Override
73+
public void onGetDay(DayContainerModel dayContainerModel) {
74+
Log.d(TAG, dayContainerModel.getDate());
75+
}
76+
});
77+
```
78+
# Happy Coding
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 28
5+
defaultConfig {
6+
applicationId "com.skyhope.evencalneder"
7+
minSdkVersion 16
8+
targetSdkVersion 28
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
}
20+
21+
dependencies {
22+
implementation fileTree(include: ['*.jar'], dir: 'libs')
23+
implementation 'com.android.support:appcompat-v7:28.0.0'
24+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
25+
testImplementation 'junit:junit:4.12'
26+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
27+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28+
implementation project(':eventcalenderlibrary')
29+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)