From 2f7c993b5d856f852645d998385be8fcec82acea Mon Sep 17 00:00:00 2001 From: lizhanwei <Dana_Lee1016@126.com> Date: 星期三, 08 四月 2020 09:42:52 +0800 Subject: [PATCH] 完成http下载地图和车辆模型,目前app每次重启都会下载地图 --- app/src/main/java/safeluck/drive/evaluation/fragment/RoadDriveMapFragmentaa.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/safeluck/drive/evaluation/fragment/RoadDriveMapFragmentaa.java b/app/src/main/java/safeluck/drive/evaluation/fragment/RoadDriveMapFragmentaa.java index 6959d74..43558a3 100644 --- a/app/src/main/java/safeluck/drive/evaluation/fragment/RoadDriveMapFragmentaa.java +++ b/app/src/main/java/safeluck/drive/evaluation/fragment/RoadDriveMapFragmentaa.java @@ -394,7 +394,6 @@ paint.setStrokeWidth(1.5f); paint.setAntiAlias(true); paint.setColor(Color.RED); - paint.setPathEffect(null); Log.i(TAG,"redLinesSize"+redLines.size()); for (List<Integer> redline: redLines @@ -467,6 +466,7 @@ } // canvas2.drawPath(path, paint); + paint.setColor(Color.BLACK); path.moveTo((float) (base_x + (car[body.get(0)][0] - min_x) * scale_x), (float) (base_y + (car[body.get(0)][1] - min_y) * scale_y)); for (int i = 1; i < body.size(); i++){ Log.d(TAG, "for 寰幆 DrawMap to X = " + (float) (base_x + (car[body.get(i)][0] - min_x) * scale_x)+ " Y = " + (float) (base_y + (car[body.get(i)][1] - min_y) * scale_y)); @@ -600,7 +600,6 @@ canvas3.drawCircle((float) (base_x + (car[tire.get(1)][0]) * scale_x), (float) (base_y + (car[tire.get(1)][1]) * scale_y), 2.5f, paint); canvas3.drawCircle((float) (base_x + (car[tire.get(2)][0]) * scale_x), (float) (base_y + (car[tire.get(2)][1]) * scale_y), 2.5f, paint); canvas3.drawCircle((float) (base_x + (car[tire.get(3)][0]) * scale_x), (float) (base_y + (car[tire.get(3)][1]) * scale_y), 2.5f, paint); - Path pathCanvs3 = new Path(); -- Gitblit v1.8.0