GradientPolyline:在Android的Google地图上使用梯度折线不是内置API。 但是现在很容易:winking_face:

上传者: 42134234 | 上传时间: 2023-03-07 16:25:29 | 文件大小: 19.15MB | 文件类型: ZIP
渐变折线 本机用于在Android的Google地图上创建渐变折线的用例。 由于它不是Google Maps Android SDK中的内置API。 案例分析 如果要在Andoird Google Maps的两个位置之间创建渐变折线,则将无法执行此操作,因为根据此注释,它不是Android Google Maps SDK中的内置API。 这使我尝试是否可以本地实现,否则将很难实现。 我发现,在6小时之内,它可能会翻倍,您只需要开箱即用地考虑一下,然后尝试一下。 如何创建GradientPolyLine类? 由于我们将要实现自己创建渐变颜色的功能,因此我们应该知道如何以编程方式创建渐变颜色。 但是,在更深入地研究它之前,我们想提一下,要能够绘制渐变多段线,我们首先应该具有用于​​绘制渐变多段线的路线-坐标列表。 在assets文件夹中,您将找到一个route.json文件,其中包含指示

文件下载

资源详情

[{"title":"( 50 个子文件 19.15MB ) GradientPolyline:在Android的Google地图上使用梯度折线不是内置API。 但是现在很容易:winking_face:","children":[{"title":"GradientPolyline-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"art","children":[{"title":"gradient_polyline.gif <span style='color:#111;'> 19.15MB </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.properties <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 751B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"egdroid","children":[{"title":"gradientpolyline","children":[{"title":"ExampleUnitTest.kt <span style='color:#111;'> 353B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"egdroid","children":[{"title":"gradientpolyline","children":[{"title":"ExampleInstrumentedTest.kt <span style='color:#111;'> 684B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.40KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 16.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.51KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 11.59KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 7.30KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_gradient_route.xml <span style='color:#111;'> 895B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"assets","children":[{"title":"route.json <span style='color:#111;'> 108.45KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"egdroid","children":[{"title":"gradientpolyline","children":[{"title":"viewmodel","children":[{"title":"GradientRouteVM.kt <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"model","children":[{"title":"RouteUiModel.kt <span style='color:#111;'> 334B </span>","children":null,"spread":false},{"title":"RouteDto.kt <span style='color:#111;'> 422B </span>","children":null,"spread":false}],"spread":false},{"title":"ui","children":[{"title":"GradientRouteActivity.kt <span style='color:#111;'> 4.71KB </span>","children":null,"spread":false}],"spread":false},{"title":"ext","children":[{"title":"GoogleMapsExt.kt <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"GradientPolyline.kt <span style='color:#111;'> 8.85KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"Utils.kt <span style='color:#111;'> 794B </span>","children":null,"spread":false}],"spread":false},{"title":"repo","children":[{"title":"RouteRepo.kt <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 53.06KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CONTRIBUTING.md <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":".idea","children":[{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"codeStyleConfig.xml <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.xml <span style='color:#111;'> 680B </span>","children":null,"spread":false},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 357B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.39KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 662B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明