new#Vr模式车速仪表盘

This commit is contained in:
wujifei
2021-03-25 15:54:04 +08:00
parent 69ac045f29
commit a65758b8cf

View File

@@ -1,6 +1,7 @@
package com.mogo.module.extensions.entrance;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.Rect;
import android.location.Location;
import android.os.Bundle;
@@ -1321,7 +1322,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
public void onCarLocationChanged2(Location location) {
vrModeNavInfoView.refreshCurrentSpeed((int) (location.getSpeed() * 3.6F));
int speed = (int) (location.getSpeed() * 3.6F);
mouduleArc.setArcColor(speed > 40 ? R.color.arc_speeding : R.color.arc_speed);
mouduleArc.setArcColor(Color.parseColor(speed > 40 ? "#DB3137" : "#3E77F6"));
mouduleArc.setValues(speed);
}