Skip to content
This library will help to show the polyline in dual color similar as Uber.
Java HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates Dec 20, 2018
.idea Initial Commit Dec 6, 2018
app Lag dismissed Dec 13, 2018
gradle/wrapper Initial commit Dec 6, 2018
uberpolylineanimation Update MapAnimator.java Mar 31, 2019
.gitignore Initial commit Dec 6, 2018
LICENSE License Dec 20, 2018
README.md Update README.md Jan 10, 2019
_config.yml Set theme jekyll-theme-slate Dec 26, 2018
build.gradle Initial commit Dec 6, 2018
googleb6f4c51137860653.html Add files via upload Dec 16, 2018
gradle.properties Initial commit Dec 6, 2018
gradlew Initial commit Dec 6, 2018
gradlew.bat Initial commit Dec 6, 2018
polylinegif.gif Initial Commit Dec 13, 2018
settings.gradle Initial commit Dec 6, 2018

README.md

Dual-color-Polyline-Animation

Android Arsenal BCH compliance Platform
This library will help to show the polyline in dual color similar as Uber with animation in the demo.

Demo



Steps:

Pass the googlemap context and Latlng points stored in arraylist.

MapAnimator.getInstance().animateRoute(googleMap, polyLineList);

polyLineList refers to the ArrayList, the coordinates which is to be decoded from the directions api of google.
Note: You can change the color of the default polyline by passing :
MapAnimator.getInstance().setPrimaryLineColor(color);
MapAnimator.getInstance().setSecondaryLineColor(color);

If you are changing the default colors, call it before animateRoute() method call.

Dependency

App Level:
implementation 'com.github.tintinscorpion:Dual-color-Polyline-Animation:1.0'
Project Level:
maven { url 'https://jitpack.io' }



Developers

Pritam Dasgupta

License

MIT License Copyright (c) 2018 Pritam Dasgupta

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.