Description
Dual color polyline animation similar as Uber.
Dual-color-Polyline-Animation alternatives and similar packages
Based on the "Navigation" category.
Alternatively, view Dual-color-Polyline-Animation alternatives based on common mentions on social networks and blogs.
-
SlidingTutorial
Android Library for making animated tutorials inside your app -
Compose Destinations
Annotation processing library for type-safe Jetpack Compose navigation with no boilerplate. -
Bubble Navigation
๐ [Android Library] A light-weight library to easily make beautiful Navigation Bar with ton of ๐จ customization option. -
FragNav
An Android library for managing multiple stacks of fragments -
RecyclerTabLayout
An efficient TabLayout library implemented with RecyclerView. -
Duo Navigation Drawer
A flexible, easy to use, unique drawer library for your Android project. -
AnimatedBottomBar
A customizable and easy to use BottomBar navigation view with sleek animations, with support for ViewPager, ViewPager2, NavController, and badges. -
Chip Navigation Bar
An android navigation bar widget -
BubbleTabBar
BubbleTabBar is a bottom navigation bar with customizable bubble-like tabs -
Alligator
Alligator is a modern Android navigation library that will help to organize your navigation code in clean and testable way. -
Compose Navigation Reimagined
๐ Type-safe navigation library for Jetpack Compose -
Fragula 2
๐ง Fragula is a swipe-to-dismiss extension for navigation component library for Android -
PagerSlidingTabStrip
An interactive indicator to navigate between the different pages of a ViewPager -
Okuki
Okuki is a simple, hierarchical navigation bus and back stack for Android, with optional Rx bindings, and Toothpick DI integration. -
CarMarker-Animation
Marker Animation android googlemap -
Keyboard Dismisser
Dismiss your keyboard by tapping anywhere outside it. -
TypedNavigation
A lightweight library to help you navigate in compose with well typed functions. -
Facilis
A sleek, out of the box, easy to understand and use, swipe gesture based Navigational Library for android. -
fragstack
Memory efficient android library for managing individual fragment backstack. -
what3words Autosuggest EditText
An Android library to use what3words autosuggest -
EasySideNavigation
Create side navigation in easy way -
AndroidBriefActions
Android library for sending and observing non persistent actions such as showing a message; nice readable way to call navigation actions from ViewModel or Activity/Fragment.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Dual-color-Polyline-Animation or a related project?
README
Dual-color-Polyline-Animation
This library will help to show the polyline in dual color similar as Uber with animation in the demo.
Demo
Dependency
App Level:
implementation 'com.github.tintinscorpion:Dual-color-Polyline-Animation:{latest_version}'
Project Level:
maven { url 'https://jitpack.io' }
Steps:
Pass the googlemap context and Latlng points stored in arraylist.
In Kotlin:
MapAnimator.animateRoute(googleMap, polyLineList)
In Java:
MapAnimator.INSTANCE.animateRoute(googleMap, polyLineList);
polyLineList refers to the List of LatLng, the coordinates which is to be decoded from the directions api of google.
Additional:
You can change the color and animation time and the width of the polyline by passing :
MapAnimator.setPrimaryLineColor(color)
MapAnimator.setSecondaryLineColor(color)
MapAnimator.setPercentCompletion(@IntegerRes time: Int) default is 2500 //amount of time to draw the initial polyline
MapAnimator.setColorFillCompletion(@IntegerRes time: Int) default is 1800 //amount of time to refill the primary color
MapAnimator.setDelayTime(@IntegerRes time: Int) default is 200 //amount of time for delaying to run the sequenceof animation
MapAnimator.setPrimaryLineCompletion(@IntegerRes time: Int) default is 2000 //amount of time required for the animation to reach from point A to B
MapAnimator.setPolylineWidth(width: Float) default is 8f
If you are calling these methods, call it before animateRoute() method call else it won't reflect.
Note:
If you are using proguard then, write this in proguard-rules.pro
//For android studio 4.0 and above-
-keepclassmembers class com.logicbeanzs.uberpolylineanimation.* {
<fields>;
<init>();
<methods>;
}
//For android studio below 4.0-
-keep class com.logicbeanzs.uberpolylineanimation.**
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.
*Note that all licence references and agreements mentioned in the Dual-color-Polyline-Animation README section above
are relevant to that project's source code only.