Merge remote-tracking branch 'origin/dev2_aiSdk' into dev2_aiSdk
# Conflicts: # modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml
@@ -16,7 +16,6 @@ import com.mogo.module.v2x.V2XConst;
|
||||
import com.mogo.module.v2x.V2XServiceManager;
|
||||
import com.mogo.module.v2x.entity.net.V2XOptimalRouteDataRes;
|
||||
import com.mogo.module.v2x.entity.net.V2XSpecialCarRes;
|
||||
import com.mogo.module.v2x.scenario.impl.V2XScenarioManager;
|
||||
import com.mogo.module.v2x.scenario.scene.livecar.V2XVoiceCallLiveBiz;
|
||||
import com.mogo.module.v2x.utils.TestOnLineCarUtils;
|
||||
import com.mogo.module.v2x.utils.V2XSQLiteUtils;
|
||||
@@ -162,6 +161,7 @@ public class TestPanelBroadcastReceiver extends BroadcastReceiver {
|
||||
intent.putExtra(V2XConst.BROADCAST_SCENE_EXTRA_KEY, v2XMessageEntity);
|
||||
LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent);
|
||||
} else if (sceneType == 18) { //test visualAngle UI
|
||||
V2XServiceManager.getMapService().getMarkerManager(mContext).inVisibleAllMarkers();
|
||||
V2XServiceManager.getMapService().getMapUIController().changeMapVisualAngle(VisualAngleMode.MODE_LONG_SIGHT);
|
||||
} else if (sceneType == 19) { //test visualAngle UI
|
||||
V2XServiceManager.getMapService().getMapUIController().changeMapVisualAngle(VisualAngleMode.MODE_MEDIUM_SIGHT);
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.mogo.commons.voice.AIAssist;
|
||||
import com.mogo.map.location.MogoLocation;
|
||||
import com.mogo.map.marker.IMogoMarker;
|
||||
import com.mogo.map.marker.IMogoMarkerClickListener;
|
||||
import com.mogo.map.uicontroller.VisualAngleMode;
|
||||
import com.mogo.module.common.MogoApisHandler;
|
||||
import com.mogo.module.common.entity.V2XMessageEntity;
|
||||
import com.mogo.module.common.entity.V2XPushMessageEntity;
|
||||
@@ -85,9 +86,22 @@ public class V2XVoiceCallLiveBiz implements IMogoMarkerClickListener{
|
||||
MogoApisHandler.getInstance().getApis().getRegisterCenterApi().registerMogoStaticMarkerClickListener(MAP_STATIC, this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 地图上静态marker点击,现在仅点击摄像头
|
||||
* @param marker
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public boolean onStaticMarkerClicked(IMogoMarker marker) {
|
||||
Log.d(REGISTER_LIFECYCLE_TAG,"onStaticMarkerClicked marker");
|
||||
if(V2XServiceManager.getMapService().getMapUIController().getCurrentMapVisualAngle().isLongSight()){
|
||||
Log.d(REGISTER_LIFECYCLE_TAG,"onStaticMarkerClicked marker is on LongSight, so don't response");
|
||||
return false;
|
||||
}
|
||||
//拉近地图视角为近景
|
||||
V2XServiceManager.getMapService().getMapUIController().changeMapVisualAngle(VisualAngleMode.MODE_CLOSE_SIGHT);
|
||||
//移动地图中心点至marker位置
|
||||
V2XServiceManager.getMapService().getMapUIController().moveToCenter(marker.getPosition(),true);
|
||||
String assInfo = marker.getMarkerAssInfo();
|
||||
Log.d(REGISTER_LIFECYCLE_TAG,"onStaticMarkerClicked marker assInfo : " + assInfo);
|
||||
if (TextUtils.isEmpty(assInfo) || !assInfo.contains(MAP_STATIC_TRAFFIC)) {
|
||||
@@ -161,6 +175,10 @@ public class V2XVoiceCallLiveBiz implements IMogoMarkerClickListener{
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取特定路口摄像头直播
|
||||
* @param assInfo 路口摄像头Id
|
||||
*/
|
||||
private void getSpecifiedOpenCameraLive(String assInfo) {
|
||||
MoGoAiCloudTrafficLive.viewDesignativeIntersectionLive(assInfo, new ITrafficIntersectionLiveCallBack() {
|
||||
@Override
|
||||
|
||||
|
After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
@@ -1,16 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="@dimen/dp_470"
|
||||
android:layout_height="@dimen/dp_140"
|
||||
android:layout_width="@dimen/module_v2n_tip_width"
|
||||
android:layout_height="@dimen/module_v2n_tip_height"
|
||||
android:layout_marginLeft="@dimen/dp_190"
|
||||
android:background="@drawable/v2x_front_warning_bg"
|
||||
android:layout_marginTop="@dimen/dp_20">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/warning_type_image"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_marginLeft="@dimen/dp_28"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="@dimen/module_v2n_image_margin_left"
|
||||
android:layout_marginTop="@dimen/dp_20"
|
||||
android:src="@drawable/v2x_road_front_car_warning" />
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="@dimen/dp_28"
|
||||
android:maxWidth="@dimen/dp_100"
|
||||
android:maxWidth="@dimen/module_v2n_tip_text_width"
|
||||
android:text="1.2米"
|
||||
android:textColor="@color/v2x_FF3036"
|
||||
android:textSize="@dimen/dp_32" />
|
||||
@@ -33,7 +33,7 @@
|
||||
android:layout_alignEnd="@+id/warning_distance"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/dp_20"
|
||||
android:layout_marginRight="@dimen/dp_20"
|
||||
android:layout_marginRight="@dimen/module_v2n_tip_text_margin_right"
|
||||
android:layout_toRightOf="@+id/warning_type_image"
|
||||
android:text="前车碰撞预警"
|
||||
android:textColor="#FFFFFF"
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/warning_type_image"
|
||||
android:layout_width="@dimen/dp_100"
|
||||
android:layout_height="@dimen/dp_100"
|
||||
android:layout_width="@dimen/module_v2x_event_warning_type_image_size"
|
||||
android:layout_height="@dimen/module_v2x_event_warning_type_image_size"
|
||||
android:src="@drawable/v2x_optimal_route_warning"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
@@ -99,6 +99,11 @@
|
||||
<dimen name="module_v2x_event_help_sub_title_text_size">14px</dimen>
|
||||
<dimen name="module_v2x_event_help_distance_text_size">44px</dimen>
|
||||
<dimen name="module_v2x_event_parking_text_size">19px</dimen>
|
||||
|
||||
<!--最优路线-->
|
||||
<dimen name="module_v2x_event_warning_type_image_size">133px</dimen>
|
||||
<dimen name="module_v2x_event_warning_type_text_size">42px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
|
||||
<dimen name="module_v2x_event_panel_btn_x">572px</dimen>
|
||||
|
||||
@@ -99,6 +99,11 @@
|
||||
<dimen name="module_v2x_event_help_sub_title_text_size">14px</dimen>
|
||||
<dimen name="module_v2x_event_help_distance_text_size">44px</dimen>
|
||||
<dimen name="module_v2x_event_parking_text_size">19px</dimen>
|
||||
|
||||
<!--最优路线-->
|
||||
<dimen name="module_v2x_event_warning_type_image_size">133px</dimen>
|
||||
<dimen name="module_v2x_event_warning_type_text_size">42px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
|
||||
<dimen name="module_v2x_event_panel_btn_x">572px</dimen>
|
||||
|
||||
@@ -80,6 +80,11 @@
|
||||
<dimen name="module_v2x_event_help_sub_title_text_size">26px</dimen>
|
||||
<dimen name="module_v2x_event_help_distance_text_size">80px</dimen>
|
||||
<dimen name="module_v2x_event_parking_text_size">34px</dimen>
|
||||
|
||||
<!--最优路线-->
|
||||
<dimen name="module_v2x_event_warning_type_image_size">100px</dimen>
|
||||
<dimen name="module_v2x_event_warning_type_text_size">32px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
|
||||
<dimen name="module_v2x_event_panel_btn_x">940px</dimen>
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<resources>
|
||||
<!--联想PAD适配-->
|
||||
<dimen name="module_main_v2x_animation_width">800px</dimen>
|
||||
|
||||
<dimen name="module_v2x_search_marginLeft">32px</dimen>
|
||||
<dimen name="module_v2x_operation_panel_share_goneMarginRight">32px</dimen>
|
||||
|
||||
<dimen name="module_v2x_push_img_height">390px</dimen>
|
||||
<dimen name="module_v2x_push_img_container_height">410px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_event_icon_size">160px</dimen>
|
||||
|
||||
|
||||
<dimen name="module_v2x_event_distance_text">60px</dimen>
|
||||
<dimen name="module_v2x_event_distance_title">40px</dimen>
|
||||
|
||||
<dimen name="module_v2x_history_event_icon_size">80px</dimen>
|
||||
|
||||
<dimen name="module_v2x_surrounding_item_bottom_size">15px</dimen>
|
||||
<dimen name="module_v2x_map_left">550px</dimen>
|
||||
<dimen name="module_v2x_map_top">200px</dimen>
|
||||
<dimen name="module_v2x_map_right">200px</dimen>
|
||||
<dimen name="module_v2x_map_bottom">100px</dimen>
|
||||
<dimen name="module_v2x_surrounding_top_height">90px</dimen>
|
||||
<dimen name="module_v2x_surrounding_top_bt_width">162px</dimen>
|
||||
<dimen name="module_v2x_surrounding_top_bt_height">64px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_iv_margin_top">80px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_tv_margin_top">26px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_bt_width">270px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_bt_height">86px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_bt_margin_top">58px</dimen>
|
||||
<dimen name="module_v2x_surrounding_root_margin_left">48px</dimen>
|
||||
<dimen name="module_v2x_surrounding_margin_left">48px</dimen>
|
||||
<dimen name="module_v2x_surrounding_empty_image_height">349px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_width">465px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_height">306px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom">77px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom_image_height">50px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_marigin_left">28px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_marigin_bottom_left">16px</dimen>
|
||||
<dimen name="module_v2x_panel_surrounding_marginbottom">5px</dimen>
|
||||
<dimen name="module_v2x_panel_surrounding_stance">80px</dimen>
|
||||
<dimen name="module_v2x_surrounding_top">22px</dimen>
|
||||
|
||||
<dimen name="module_v2x_surrounding_list_margin_left">20px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_margin_left">30px</dimen>
|
||||
|
||||
<dimen name="module_v2x_surrounding_refresh_bt_radius">42px</dimen>
|
||||
<dimen name="module_v2x_surrounding_top_textsize">30px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom_left_textsize">36px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_bottom_right_textsize">30px</dimen>
|
||||
<dimen name="module_v2x_surrounding_item_maigin_left">50px</dimen>
|
||||
|
||||
<dimen name="module_v2x_panel_width">120px</dimen>
|
||||
|
||||
<dimen name="module_v2x_panel_tab_height">158px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
<dimen name="module_v2x_event_type_title_text_size">20px</dimen>
|
||||
<dimen name="module_v2x_event_title_text_size">36px</dimen>
|
||||
<dimen name="module_v2x_event_sub_title_text_size">28px</dimen>
|
||||
<dimen name="module_v2x_event_head_size">55px</dimen>
|
||||
<dimen name="module_v2x_event_live_error_text_size">36px</dimen>
|
||||
<dimen name="module_v2x_live_window_height">310px</dimen>
|
||||
<dimen name="module_v2x_event_button_size">110px</dimen>
|
||||
<dimen name="module_v2x_event_button_size_detail">120px</dimen>
|
||||
|
||||
<!--道路事件 高的弹窗-->
|
||||
<dimen name="module_v2x_event_image_height">270px</dimen>
|
||||
<dimen name="module_v2x_event_image_width">480px</dimen>
|
||||
<dimen name="module_v2x_event_window_height">330px</dimen>
|
||||
<dimen name="module_v2x_event_window_height_ground">450px</dimen>
|
||||
|
||||
<!--疲劳驾驶、违章停车、道路求助-->
|
||||
<dimen name="module_v2x_fatigue_driving_window_height_ground">200px</dimen>
|
||||
|
||||
<dimen name="module_v2x_event_help_head_size">75px</dimen>
|
||||
<dimen name="module_v2x_event_help_title_text_size">32px</dimen>
|
||||
<dimen name="module_v2x_event_help_sub_title_text_size">26px</dimen>
|
||||
<dimen name="module_v2x_event_help_distance_text_size">80px</dimen>
|
||||
<dimen name="module_v2x_event_parking_text_size">34px</dimen>
|
||||
|
||||
<!--最优路线-->
|
||||
<dimen name="module_v2x_event_warning_type_image_size">133px</dimen>
|
||||
<dimen name="module_v2x_event_warning_type_text_size">42px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
|
||||
<dimen name="module_v2x_event_panel_btn_x">940px</dimen>
|
||||
<dimen name="module_v2x_event_panel_btn_y">701px</dimen>
|
||||
<dimen name="v2x_driving_width">150px</dimen>
|
||||
<dimen name="v2x_driving_heigt">46px</dimen>
|
||||
<dimen name="v2x_recommond_route_size">26px</dimen>
|
||||
|
||||
|
||||
</resources>
|
||||
@@ -113,6 +113,11 @@
|
||||
<dimen name="module_v2x_event_help_sub_title_text_size">26px</dimen>
|
||||
<dimen name="module_v2x_event_help_distance_text_size">80px</dimen>
|
||||
<dimen name="module_v2x_event_parking_text_size">34px</dimen>
|
||||
|
||||
<!--最优路线-->
|
||||
<dimen name="module_v2x_event_warning_type_image_size">133px</dimen>
|
||||
<dimen name="module_v2x_event_warning_type_text_size">42px</dimen>
|
||||
|
||||
<!--适配 V2X 弹窗 UI-->
|
||||
|
||||
<dimen name="module_v2x_event_panel_btn_x">940px</dimen>
|
||||
|
||||