优化显示逻辑
This commit is contained in:
@@ -765,7 +765,7 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
|
||||
private TextView mSpeedView = null;
|
||||
private int mLastYOffset = 40;
|
||||
private int mLastYOffset = 10;
|
||||
|
||||
private void showSelfSpeed(float speed) {
|
||||
|
||||
@@ -789,9 +789,9 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
|
||||
String speedVal = String.valueOf(speedIntVal);
|
||||
String infoResName = ResIdCache.getVal(speedVal);
|
||||
int offset = 40;
|
||||
int offset = 10;
|
||||
if ( !mMapView.getMapAutoViewHelper().getLockMode() ) {
|
||||
offset = 10;
|
||||
offset = 30;
|
||||
}
|
||||
if ( offset != mLastYOffset ) {
|
||||
mLastYOffset = offset;
|
||||
@@ -909,6 +909,8 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
mCurrentUI = EnumMapUI.Type_Night;
|
||||
} else if (i == MapAutoApi.MAP_STYLE_VR) {
|
||||
mCurrentUI = EnumMapUI.Type_VR;
|
||||
// 进入vr模式的时候自动切换到车头朝上
|
||||
change2CarUp();
|
||||
}
|
||||
// else if ( i == MapAutoApi.MAP_PERSPECTIVE_2D ) {
|
||||
// mCurrentUI = EnumMapUI.CarUp_2D;
|
||||
@@ -947,6 +949,13 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 切换到车头朝上
|
||||
*/
|
||||
private void change2CarUp(){
|
||||
mMapView.getMapAutoViewHelper().setMapViewPerspective(MapAutoApi.MAP_PERSPECTIVE_UP_CAR);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testGpsData() {
|
||||
GpsTester.getInstance().testGpsData();
|
||||
|
||||
Reference in New Issue
Block a user