diff --git a/README.md b/README.md
index ac7295e..3eafcc4 100644
--- a/README.md
+++ b/README.md
@@ -14,9 +14,7 @@ Android Timeline View Library (Using RecyclerView) is simple implementation used
## Sample Project
-You can download the latest sample APK from this repo here: [https://github.com/vipulasri/Timeline-View/tree/master/apk](https://github.com/vipulasri/Timeline-View/tree/master/apk)
-
-For information : checkout [Sample App Code](https://github.com/vipulasri/Timeline-View/tree/master/app) in repository.
+For information : checkout [Example Screen Code](https://github.com/vipulasri/Timeline-View/tree/master/app/src/main/java/com/github/vipulasri/timelineview/sample/example) in repository.
### Download
@@ -30,7 +28,7 @@ For information : checkout [Sample App Code](https://github.com/vipulasri/Timeli
``` gradle
dependencies {
- compile 'com.github.vipulasri:timelineview:1.0.6'
+ implementation 'com.github.vipulasri:timelineview:1.1.0'
}
```
@@ -40,26 +38,14 @@ dependencies {
com.github.vipulasri
timelineview
- 1.0.6
+ 1.1.0
pom
```
-
-#### Manual:
-**Manual - Using [Android Studio](https://developer.android.com/sdk/installing/studio.html):**
- * Download the library folder and import to your root application folder.
-You can manually achieve this step with 3 steps:
- 1. Paste the folder library into your application at the same level of your app, build and gradle folder
- 2. Add to your settings.gradle file the following code line:
- "include ':app', ':timelineview'"
- 3. Rebuild the project
- * File → Project Structure → in Modules section click on "app" → Click on tab "Dependecies" → Click on the green plus → Module Dependecy → Select ":library"
- * Done
-
### What's New
-See the project's Releases page for a list of versions with their changelogs.
+See the project's Releases page for a list of versions with their change logs.
### [View Releases](https://github.com/vipulasri/Timeline-View/releases)
@@ -70,24 +56,26 @@ If you Watch this repository, GitHub will send you an email every time I publish
``` java
+ app:startLineColor="@color/colorPrimary"
+ app:endLineColor="@color/colorPrimary"/>
```
##### Line Padding around marker
``` java
```
@@ -113,12 +101,17 @@ If you Watch this repository, GitHub will send you an email every time I publish
sets the marker in center of line if `true` |
- app:line="@color/primarColor" |
+ app:startLineColor="@color/primarColor" |
Dark Grey Line |
- sets line color |
+ sets start line color |
-
- app:lineSize="2dp" |
+
+ app:endLineColor="@color/primarColor" |
+ Dark Grey Line |
+ sets end line color |
+
+
+ app:lineWidth="2dp" |
2dp |
sets line width |
@@ -131,11 +124,26 @@ If you Watch this repository, GitHub will send you an email every time I publish
app:linePadding="5dp" |
0dp |
sets line padding around marker |
-
+
+
+ app:lineStyle="dash" |
+ normal |
+ sets line style ie `normal` or `dashed` |
+
+
+ app:lineStyleDashGap="4dp" |
+ 4dp |
+ sets line dash gap |
+
+
+ app:lineStyleDashLength="8dp" |
+ 8dp |
+ sets line dash length |
+
* RecyclerView Holder :
- Your `RecyclerViewHolder` should have an extra paramenter in constructor i.e viewType from `onCreateViewHolder`. You would also have to call the method `initLine(viewType)` in constructor definition.
+ Your `RecyclerViewHolder` should have an extra parameter in constructor i.e viewType from `onCreateViewHolder`. You would also have to call the method `initLine(viewType)` in constructor definition.
``` java
@@ -144,7 +152,7 @@ If you Watch this repository, GitHub will send you an email every time I publish
public TimeLineViewHolder(View itemView, int viewType) {
super(itemView);
- mTimelineView = (TimelineView) itemView.findViewById(R.id.time_marker);
+ mTimelineView = (TimelineView) itemView.findViewById(R.id.timeline);
mTimelineView.initLine(viewType);
}
}
@@ -158,7 +166,7 @@ If you Watch this repository, GitHub will send you an email every time I publish
@Override
public int getItemViewType(int position) {
- return TimelineView.getTimeLineViewType(position,getItemCount());
+ return TimelineView.getTimeLineViewType(position, getItemCount());
}
```
@@ -184,7 +192,7 @@ Please let me know via [email](mailto:vipulasri.2007@gmail.com), [pull requests]
## License
- Copyright 2017 Vipul Asri
+ Copyright 2018 Vipul Asri
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/art/showcase.png b/art/showcase.png
index 63f2a9a..d9c116a 100644
Binary files a/art/showcase.png and b/art/showcase.png differ