修改了车的角度
This commit is contained in:
@@ -20,6 +20,8 @@ import com.mogo.module.common.entity.MarkerShowEntity;
|
|||||||
import com.mogo.module.service.R;
|
import com.mogo.module.service.R;
|
||||||
import com.mogo.module.service.ServiceConst;
|
import com.mogo.module.service.ServiceConst;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* author : donghongyu
|
* author : donghongyu
|
||||||
* e-mail : 1358506549@qq.com
|
* e-mail : 1358506549@qq.com
|
||||||
@@ -74,7 +76,8 @@ public class MapMarkerInfoView extends MapMarkerBaseView {
|
|||||||
ivIcon.setVisibility(View.INVISIBLE);
|
ivIcon.setVisibility(View.INVISIBLE);
|
||||||
loadImageWithMarker(markerShowEntity);
|
loadImageWithMarker(markerShowEntity);
|
||||||
ivCar.setImageResource(R.drawable.icon_map_marker_car_gray);
|
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());
|
||||||
|
|
||||||
if (bindObj instanceof MarkerOnlineCar) {
|
if (bindObj instanceof MarkerOnlineCar) {
|
||||||
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {
|
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import com.mogo.module.common.entity.MarkerShowEntity;
|
|||||||
import com.mogo.module.service.R;
|
import com.mogo.module.service.R;
|
||||||
import com.mogo.module.service.ServiceConst;
|
import com.mogo.module.service.ServiceConst;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* author : donghongyu
|
* author : donghongyu
|
||||||
* e-mail : 1358506549@qq.com
|
* e-mail : 1358506549@qq.com
|
||||||
@@ -65,7 +67,8 @@ public class MapMarkerView extends MapMarkerBaseView {
|
|||||||
ivIcon.setVisibility(View.INVISIBLE);
|
ivIcon.setVisibility(View.INVISIBLE);
|
||||||
loadImageWithMarker(markerShowEntity);
|
loadImageWithMarker(markerShowEntity);
|
||||||
ivCar.setImageResource(R.drawable.icon_map_marker_car_gray);
|
ivCar.setImageResource(R.drawable.icon_map_marker_car_gray);
|
||||||
ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
|
// ivCar.setRotation((float) markerShowEntity.getMarkerLocation().getAngle());
|
||||||
|
ivCar.setRotation(new Random().nextInt(360));
|
||||||
|
|
||||||
if (bindObj instanceof MarkerOnlineCar) {
|
if (bindObj instanceof MarkerOnlineCar) {
|
||||||
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {
|
if (((MarkerOnlineCar) bindObj).getUserInfo().getGenderValue() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user