定位按钮实现调整车头方向功能
This commit is contained in:
@@ -11,6 +11,7 @@ import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
|
||||
@@ -112,7 +113,7 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
private TextView mUpload;
|
||||
private ImageView mUploading;
|
||||
|
||||
private View mMove2CurrentLocation;
|
||||
private ImageButton mMove2CurrentLocation;
|
||||
|
||||
private NaviInfoView mNaviInfo;
|
||||
private TextView mExitNavi;
|
||||
@@ -247,9 +248,17 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
mStatusManager.setDisplayOverview(TAG, false);
|
||||
UiThreadHandler.removeCallbacks(mLockCarRunnable);
|
||||
}
|
||||
if ( !mApis.getRefreshStrategyControllerApi().restartAutoRefreshAtTime( 0 ) ) {
|
||||
mStatusManager.setUserInteractionStatus(TAG, true, false);
|
||||
mMApUIController.recoverLockMode();
|
||||
if ( mIsLock ) {
|
||||
if ( mMApUIController.getCurrentUiMode() == EnumMapUI.CarUp_2D ) {
|
||||
mMApUIController.changeMapMode( EnumMapUI.NorthUP_2D );
|
||||
} else if( mMApUIController.getCurrentUiMode() == EnumMapUI.NorthUP_2D ){
|
||||
mMApUIController.changeMapMode( EnumMapUI.CarUp_2D );
|
||||
}
|
||||
} else {
|
||||
if ( !mApis.getRefreshStrategyControllerApi().restartAutoRefreshAtTime( 0 ) ) {
|
||||
mStatusManager.setUserInteractionStatus(TAG, true, false);
|
||||
mMApUIController.recoverLockMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
@@ -734,6 +743,16 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
} else {
|
||||
mExitNavi.setText(R.string.module_ext_str_continue_navi);
|
||||
}
|
||||
|
||||
if ( isLock ) {
|
||||
if ( mMApUIController.getCurrentUiMode() == EnumMapUI.CarUp_2D ) {
|
||||
mMove2CurrentLocation.setImageResource( R.drawable.icon_north_up );
|
||||
} else {
|
||||
mMove2CurrentLocation.setImageResource( R.drawable.icon_car_up );
|
||||
}
|
||||
} else {
|
||||
mMove2CurrentLocation.setImageResource( R.drawable.module_map_ic_move2_current_location );
|
||||
}
|
||||
}
|
||||
|
||||
private void traceData(String from) {
|
||||
@@ -784,7 +803,6 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void renderWeatherInfo(String temp, String desc, int iconId) {
|
||||
if (!DebugConfig.isMapBased()) {
|
||||
@@ -929,6 +947,12 @@ public class EntranceFragment extends MvpFragment<EntranceView, EntrancePresente
|
||||
}
|
||||
mCameraMode.setSelected(ui == EnumMapUI.NorthUP_2D);
|
||||
mCameraMode.setText(getString(ui == EnumMapUI.NorthUP_2D ? R.string.mode_car_up : R.string.mode_north_up));
|
||||
|
||||
if ( ui == EnumMapUI.CarUp_2D ) {
|
||||
mMove2CurrentLocation.setImageResource( R.drawable.icon_north_up );
|
||||
} else if( ui == EnumMapUI.NorthUP_2D ){
|
||||
mMove2CurrentLocation.setImageResource( R.drawable.icon_car_up );
|
||||
}
|
||||
}
|
||||
|
||||
private static int SEEK_HELP_NOTICE_NUM_MSG_TYPE = 401015;
|
||||
|
||||
@@ -6,6 +6,8 @@ import android.util.Log;
|
||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.module.service.ServiceConst;
|
||||
import com.mogo.module.service.network.RefreshCallback;
|
||||
import com.mogo.module.service.network.bean.TtsConfigEntity;
|
||||
|
||||
/**
|
||||
* @author :zhuangyan
|
||||
@@ -24,7 +26,7 @@ public class TtsConfigProvider implements IProvider {
|
||||
if (mTtsModleData==null) {
|
||||
mTtsModleData=new TtsConfigModleData();
|
||||
}
|
||||
mTtsModleData.playTts(new RefreshCallback<TtsConfigEntity>() {
|
||||
mTtsModleData.playTts(new RefreshCallback< TtsConfigEntity >() {
|
||||
@Override
|
||||
public void onSuccess(TtsConfigEntity o) {
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
<string name="module_services_panel_item_distance_tag_text">距离导航目的地</string>
|
||||
<string name="module_services_panel_item_detail_text">查看车友信息</string>
|
||||
<string name="module_services_panel_item_call">电话</string>
|
||||
<string name="module_services_online_car_panel_empty_tmpl">很抱歉,目的地%dKM内未找到车友</string>
|
||||
<string name="module_services_online_car_panel_empty_tmpl">很抱歉,目的地%d公里内未找到车友</string>
|
||||
<string name="module_services_online_car_panel_title">目的地车友</string>
|
||||
<string name="module_services_error_text">加载失败,请点击重试</string>
|
||||
|
||||
Reference in New Issue
Block a user