修改了模拟角度

This commit is contained in:
董宏宇
2020-03-09 14:23:28 +08:00
parent 705321658a
commit e2890b87f9
2 changed files with 4 additions and 4 deletions

View File

@@ -76,8 +76,8 @@ public class MapMarkerInfoView extends MapMarkerBaseView {
ivIcon.setVisibility(View.INVISIBLE);
loadImageWithMarker(markerShowEntity);
ivCar.setImageResource(R.drawable.icon_map_marker_car_gray);
ivCar.setRotation(new Random().nextInt(360));
// ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
//ivCar.setRotation(new Random().nextInt(360));
ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
if (bindObj instanceof MarkerOnlineCar) {
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {

View File

@@ -67,8 +67,8 @@ public class MapMarkerView extends MapMarkerBaseView {
ivIcon.setVisibility(View.INVISIBLE);
loadImageWithMarker(markerShowEntity);
ivCar.setImageResource(R.drawable.icon_map_marker_car_gray);
// ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
ivCar.setRotation(new Random().nextInt(360));
ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
// ivCar.setRotation(new Random().nextInt(360));
if (bindObj instanceof MarkerOnlineCar) {
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {