项目作者: Moneemsaadaoui

项目描述 :
A support library for Google maps gradient polylines on Android 🌈🌈🌈
高级语言: Java
项目地址: git://github.com/Moneemsaadaoui/Gradientpoly.git
创建时间: 2019-01-23T15:53:30Z
项目社区:https://github.com/Moneemsaadaoui/Gradientpoly

开源协议:

下载


Gradientpoly 🌈🌈🌈

Gradient polylines on android .. finally🤙⛳ 🌍

Getting started🦗

In your project build.gradle add: 🎉🎉

  1. allprojects {
  2. repositories {
  3. ..
  4. maven { url 'https://dl.bintray.com/moneemsaadaoui/GradientPoly/' }
  5. ..
  6. }
  7. }

In your app module build.gradle :

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

Now you’re all good to go !😎

Usage 🐜

  1. GradientPoly gradientPoly = new GradientPoly(mMap, MainActivity.this);
  2. gradientPoly.setApiKey("API KEY")
  3. .setStartPoint(from).setEndPoint(to)
  4. .setStartColor(Color.parseColor("#1eb5ab"))
  5. .setWidth(11).setEndColor(Color.parseColor("#ff0098"))
  6. .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 👌👌