Skip to content

A support library for Google maps gradient polylines on Android 🌈🌈🌈

Notifications You must be signed in to change notification settings

Moneemsaadaoui/Gradientpoly

Repository files navigation

Gradientpoly 🌈🌈🌈

Gradient polylines on android .. finallyπŸ€™β›³ 🌍

Getting startedπŸ¦—

In your project build.gradle add: πŸŽ‰πŸŽ‰

allprojects {
    repositories {
        ..
        maven { url 'https://dl.bintray.com/moneemsaadaoui/GradientPoly/' }
        ..
      }
}

In your app module build.gradle :

compile 'com.rrdl.GradientPoly:GradientPoly:0.1.0'

Now you're all good to go !😎

Usage 🐜

    
    GradientPoly gradientPoly = new GradientPoly(mMap, MainActivity.this);
    
    gradientPoly.setApiKey("API KEY")
                        .setStartPoint(from).setEndPoint(to)
                        .setStartColor(Color.parseColor("#1eb5ab"))
                        .setWidth(11).setEndColor(Color.parseColor("#ff0098"))
                        .DrawPolyline();

Customization 🐜

method Required? Default Type Description
setApiKey YES "" String Google Maps API Key
setStartPoint YES null LatLng Path starting point
setEndPoint YES null LatLng Path finish point
setStartColor YES null Int Gradient start color
setEndColor YES null Int Gradient End color
setWidth YES null Int PolyLine Width in dp

Pull requests are highly welcomed ! Go and make it better πŸ‘ŒπŸ‘Œ

About

A support library for Google maps gradient polylines on Android 🌈🌈🌈

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages