diff --git a/libraries/map-amap/src/main/res/values/dimens.xml b/libraries/map-amap/src/main/res/values/dimens.xml
index 21d58bd9ed..d8d50de3af 100644
--- a/libraries/map-amap/src/main/res/values/dimens.xml
+++ b/libraries/map-amap/src/main/res/values/dimens.xml
@@ -1,7 +1,7 @@
60px
- 44px
- 66px
+ 33px
+ 50px
146px
\ No newline at end of file
diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntrancePresenter.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntrancePresenter.java
index 31ac15568d..fb6d339554 100644
--- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntrancePresenter.java
+++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntrancePresenter.java
@@ -120,7 +120,9 @@ public class EntrancePresenter extends Presenter implements Weathe
// 相当于每次onResume都会请求一下个人信息,目的是能够相对及时的同步手机端的个人信息修改
requestUserInfo();
}
- requestCarModelList();
+ if(DebugConfig.isMapBased()) {
+ requestCarModelList();
+ }
getCommonConfig();
}
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java
index 2fefe935c1..fa111adadc 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/V2XSurroundingAdapter.java
@@ -74,16 +74,11 @@ public class V2XSurroundingAdapter extends RecyclerView.Adapter {
mAddressTv = itemView.findViewById(R.id.tvAddress);
mIllegalNumTv = itemView.findViewById(R.id.tvIllegalNum);
mIlIllegalParkingLike = itemView.findViewById(R.id.llIllegalParkingLike);
- Drawable drawable = ContextCompat.getDrawable(viewGroup.getContext(), R.drawable.icon_heart_like_bg);
- mIlIllegalParkingLike.setBackground(drawable);
mIIllegalParkingUnLike = itemView.findViewById(R.id.llIllegalParkingUnLike);
// 设置视图状态监听
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XRoadEventVH.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XRoadEventVH.java
index ba73a92fc6..85c7effcc5 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XRoadEventVH.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XRoadEventVH.java
@@ -1,7 +1,6 @@
package com.mogo.module.v2x.adapter.holder;
import android.content.Intent;
-import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
@@ -10,8 +9,6 @@ import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
-import androidx.core.content.ContextCompat;
-
import com.mogo.commons.debug.DebugConfig;
import com.mogo.module.common.entity.MarkerExploreWay;
import com.mogo.module.common.entity.MarkerUserInfo;
@@ -136,8 +133,6 @@ public class V2XRoadEventVH extends V2XBaseViewHolder {
ivEventLive = itemView.findViewById(R.id.ivEventLive);
ivEventCallChart = itemView.findViewById(R.id.ivEventCallChart);
ivEventZan = itemView.findViewById(R.id.ivEventZan);
- Drawable drawable = ContextCompat.getDrawable(itemView.getContext(), R.drawable.icon_heart_like_bg);
- ivEventZan.setBackground(drawable);
ivEventReportTrue = itemView.findViewById(R.id.ivEventReportTrue);
ivEventReportErr = itemView.findViewById(R.id.ivEventReportErr);
}
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XScenarioHistoryIllegalParkVH.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XScenarioHistoryIllegalParkVH.java
index 3998c9a69a..e32d6aef52 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XScenarioHistoryIllegalParkVH.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/adapter/holder/V2XScenarioHistoryIllegalParkVH.java
@@ -1,14 +1,11 @@
package com.mogo.module.v2x.adapter.holder;
-import android.content.res.TypedArray;
-import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
-import androidx.core.content.ContextCompat;
import com.mogo.module.common.entity.MarkerExploreWay;
import com.mogo.module.common.entity.V2XHistoryScenarioData;
@@ -50,8 +47,6 @@ public class V2XScenarioHistoryIllegalParkVH extends V2XBaseViewHolder()
+
private val mV2XScenarioHistoryFragment = V2XScenarioHistoryFragment()
private val mV2XShareEventsFragment = V2XShareEventsFragment()
private val mV2XSurroundingFragment = V2XSurroundingFragment()
@@ -77,6 +101,11 @@ class V2XEventPanelFragment : MvpFragment
try {
@@ -120,6 +149,12 @@ class V2XEventPanelFragment : MvpFragment "封路"
+ MarkerPoiTypeEnum.FOURS_ICE -> "道路结冰"
+ MarkerPoiTypeEnum.FOURS_FOG -> "浓雾"
+ MarkerPoiTypeEnum.TRAFFIC_CHECK -> "交通检查"
+ MarkerPoiTypeEnum.FOURS_ACCIDENT -> "交通事故"
+ MarkerPoiTypeEnum.FOURS_BLOCK_UP -> "拥堵"
+ MarkerPoiTypeEnum.FOURS_ROAD_WORK -> "施工"
+ MarkerPoiTypeEnum.FOURS_PONDING -> "道路积水"
+ MarkerPoiTypeEnum.FOURS_LIVING -> "实时路况"
+ else -> "实时路况"
+ }
+ return typeName
+ }
+
private fun selectWithItem(item: Int) {
when (item) {
0 -> {
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java
index a9d2cfd849..92ebcde361 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/fragment/V2XSurroundingFragment.java
@@ -26,6 +26,7 @@ import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.alibaba.android.arouter.launcher.ARouter;
+import com.mogo.commons.debug.DebugConfig;
import com.mogo.commons.mvp.MvpFragment;
import com.mogo.commons.voice.AIAssist;
import com.mogo.map.MogoLatLng;
@@ -53,6 +54,8 @@ import com.mogo.service.MogoServicePaths;
import com.mogo.utils.WorkThreadHandler;
import com.mogo.utils.logger.Logger;
+import org.greenrobot.eventbus.EventBus;
+
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
@@ -82,14 +85,6 @@ public class V2XSurroundingFragment extends MvpFragment markerExploreWays = new ArrayList<>();
-
-
@Override
protected int getLayoutId() {
@@ -118,13 +113,6 @@ public class V2XSurroundingFragment extends MvpFragment 0) {
AIAssist.getInstance(V2XUtils.getApp()).
speakTTSVoice("为您找到周边以下事件请查看", null);
@@ -323,99 +300,76 @@ public class V2XSurroundingFragment extends MvpFragment exploreWayList = construction.getConstrutList();
+ Logger.d(TAG, "onItemClickListener exploreWayList.size() = " + exploreWayList.size());
+ if (exploreWayList != null && exploreWayList.size() > 0) {
+ for (int i = 0; i < exploreWayList.size(); i++) {
+ MarkerExploreWay exploreWay = exploreWayList.get(i);
+ MarkerShowEntity markerShowEntity = new MarkerShowEntity();
+ markerShowEntity.setBindObj(exploreWay);
+ markerShowEntity.setChecked(false);
+ markerShowEntity.setTextContent(exploreWay.getAddr());
+ markerShowEntity.setMarkerLocation(exploreWay.getLocation());
+ markerShowEntity.setMarkerType(ServiceConst.CARD_TYPE_ROAD_CONDITION);
+
+ WorkThreadHandler.getInstance().postDelayed(() -> {
+ IMogoMarker mogoMarker = V2XServiceManager.getIMogoMarkerService().drawMarker(markerShowEntity);
+ // 点击监听,天际弹窗展示详情
+ if (mogoMarker != null) {
+ mogoMarker.startScaleAnimation(0, 1.2f, 0, 1.2f, 300, new AccelerateInterpolator(), new OnMarkerAnimationListener() {
+ @Override
+ public void onAnimStart() {
+ Logger.d(TAG, " onItemClickListener onAnimStart -----> ");
+ }
+
+ @Override
+ public void onAnimEnd() {
+ if (mogoMarker.isDestroyed()) {
+ return;
+ }
+ Logger.d(TAG, " onItemClickListener onAnimEnd ------> ");
+ mogoMarker.startScaleAnimation(1.2f, 1, 1.2f, 1, 100, new LinearInterpolator(), null);
+ }
+ });
+ mogoMarker.setOwner(markerShowEntity.getMarkerType());
+ mogoMarker.setObject(markerShowEntity);
+ }
+ }, i * 100L);
+ }
+
+ //自适应显示
+ showBonndsRoadtion(exploreWayList);
+ } else {
+ Logger.e(TAG, "onItemClickListener exploreWayList == null");
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
}
}
-// @Override
-// public void onItemClickListener(View v, int position, SurroundingConstruction construction) {
-// if (construction != null) {
-// //卡片消失
-// V2XEventPanelFragment.Companion.getInstance().hidePanel();
-// //清除道路事件
-// V2XServiceManager.getMarkerManager().removeMarkers(ServiceConst.CARD_TYPE_ROAD_CONDITION);
-//
-// try {
-// //处理 marker的显示
-// List exploreWayList = construction.getConstrutList();
-// Logger.d(TAG, "onItemClickListener exploreWayList.size() = " + exploreWayList.size());
-// if (exploreWayList != null && exploreWayList.size() > 0) {
-// for (int i = 0; i < exploreWayList.size(); i++) {
-// MarkerExploreWay exploreWay = exploreWayList.get(i);
-// MarkerShowEntity markerShowEntity = new MarkerShowEntity();
-// markerShowEntity.setBindObj(exploreWay);
-// markerShowEntity.setChecked(false);
-// markerShowEntity.setTextContent(exploreWay.getAddr());
-// markerShowEntity.setMarkerLocation(exploreWay.getLocation());
-// markerShowEntity.setMarkerType(ServiceConst.CARD_TYPE_ROAD_CONDITION);
-//
-// WorkThreadHandler.getInstance().postDelayed(() -> {
-// IMogoMarker mogoMarker = V2XServiceManager.getIMogoMarkerService().drawMarker(markerShowEntity);
-// // 点击监听,天际弹窗展示详情
-// if (mogoMarker != null) {
-// mogoMarker.startScaleAnimation(0, 1.2f, 0, 1.2f, 300, new AccelerateInterpolator(), new OnMarkerAnimationListener() {
-// @Override
-// public void onAnimStart() {
-// Logger.d(TAG, " onItemClickListener onAnimStart -----> ");
-// }
-//
-// @Override
-// public void onAnimEnd() {
-// if (mogoMarker.isDestroyed()) {
-// return;
-// }
-// Logger.d(TAG, " onItemClickListener onAnimEnd ------> ");
-// mogoMarker.startScaleAnimation(1.2f, 1, 1.2f, 1, 100, new LinearInterpolator(), null);
-// }
-// });
-// mogoMarker.setOwner(markerShowEntity.getMarkerType());
-// mogoMarker.setObject(markerShowEntity);
-// }
-// }, i * 100L);
-// }
-//
-// //自适应显示
-// showBonndsRoadtion(exploreWayList);
-// } else {
-// Logger.e(TAG, "onItemClickListener exploreWayList == null");
-// }
-// } catch (Exception e) {
-// e.printStackTrace();
-// }
-// }
-// }
-
-
/**
* 自适应显示
*
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/SurroundingItemClickListener.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/SurroundingItemClickListener.java
index 83eef72f09..3ebf7bccf3 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/SurroundingItemClickListener.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/listener/SurroundingItemClickListener.java
@@ -10,5 +10,5 @@ import com.mogo.module.v2x.entity.panel.SurroundingConstruction;
* @since 2020/8/10
*/
public interface SurroundingItemClickListener {
- void onItemClickListener(View v, int position, SurroundingConstruction construction, String poiType);
+ void onItemClickListener(View v, int position, SurroundingConstruction construction);
}
diff --git a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/HeartLikeView.java b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/HeartLikeView.java
index 71f3f204c2..817d7c67f6 100644
--- a/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/HeartLikeView.java
+++ b/modules/mogo-module-v2x/src/main/java/com/mogo/module/v2x/view/HeartLikeView.java
@@ -4,8 +4,6 @@ import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorSet;
import android.content.Context;
-import android.content.res.TypedArray;
-import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
@@ -25,6 +23,7 @@ public class HeartLikeView extends LinearLayout implements Animator.AnimatorList
private ImageView mIllegalParkingLike;
private AnimatorSet mAnimatorSet;
private OnClickCallListener mOnClickCallListener;
+
private boolean isAnimator = false;
public HeartLikeView(Context context) {
diff --git a/modules/mogo-module-v2x/src/main/res/drawable-mdpi/icon_history_heart_back.png b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/icon_history_heart_back.png
new file mode 100644
index 0000000000..119a39baa7
Binary files /dev/null and b/modules/mogo-module-v2x/src/main/res/drawable-mdpi/icon_history_heart_back.png differ
diff --git a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_history_heart_back.png b/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_history_heart_back.png
deleted file mode 100644
index e8c003d0ea..0000000000
Binary files a/modules/mogo-module-v2x/src/main/res/drawable-xhdpi/icon_history_heart_back.png and /dev/null differ
diff --git a/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_event_list_item.xml b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_event_list_item.xml
new file mode 100644
index 0000000000..d1f0a2354f
--- /dev/null
+++ b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_event_list_item.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_road_type.xml b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_road_type.xml
new file mode 100644
index 0000000000..e789d681a3
--- /dev/null
+++ b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_surrounding_road_type.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml
index 451abab86d..bc25522ee9 100644
--- a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml
+++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_event_detail.xml
@@ -194,10 +194,10 @@
diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml b/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml
index dca25c89b9..d335682a1c 100644
--- a/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml
+++ b/modules/mogo-module-v2x/src/main/res/layout/module_event_panel_fragment_surrounding.xml
@@ -5,201 +5,148 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
-
+
-
-
+
-
+ android:layout_height="@dimen/module_v2x_surrounding_top_height"
+ android:visibility="visible">
+
+
+
+
+ android:layout_width="@dimen/module_v2x_surrounding_top_bt_width"
+ android:layout_height="@dimen/module_v2x_surrounding_top_bt_height"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_marginEnd="@dimen/module_v2x_surrounding_margin_left"
+ android:background="@drawable/bg_v2x_refresh"
+ android:gravity="center">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_below="@+id/tv_main_empty_2"
+ android:layout_marginTop="@dimen/module_v2x_surrounding_empty_bt_margin_top">
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_surrounding_detail_item.xml b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_surrounding_detail_item.xml
index 3753401c25..cf502b43fc 100644
--- a/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_surrounding_detail_item.xml
+++ b/modules/mogo-module-v2x/src/main/res/layout/module_v2x_event_surrounding_detail_item.xml
@@ -5,7 +5,7 @@
android:id="@+id/surrounding_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:background="@drawable/bg_v2x_event_list_item">
+ android:background="@drawable/bg_v2x_surrounding_event_list_item">
+ tools:text="小黄庄北街与北三环辅路交叉口" />
+ tools:text="小蘑菇" />
@@ -51,14 +53,14 @@
android:id="@+id/surrounding_road_type"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/dp_36"
- android:layout_marginTop="@dimen/dp_12"
+ android:layout_marginStart="20px"
+ android:layout_marginTop="6px"
android:layout_marginBottom="@dimen/dp_36"
android:background="@drawable/bg_v2x_event_type_read"
android:gravity="center"
- android:paddingLeft="5px"
+ android:paddingLeft="6px"
android:paddingTop="3px"
- android:paddingRight="5px"
+ android:paddingRight="6px"
android:paddingBottom="3px"
android:text="违章停车"
android:textColor="#ffffff"
diff --git a/modules/mogo-module-v2x/src/main/res/layout/view_heart_like.xml b/modules/mogo-module-v2x/src/main/res/layout/view_heart_like.xml
index 9abaf966f6..8080b8a457 100644
--- a/modules/mogo-module-v2x/src/main/res/layout/view_heart_like.xml
+++ b/modules/mogo-module-v2x/src/main/res/layout/view_heart_like.xml
@@ -3,6 +3,7 @@
android:id="@+id/llIllegalParkingLike"
android:layout_width="@dimen/module_v2x_event_button_size"
android:layout_height="@dimen/module_v2x_event_button_size"
+ android:background="@drawable/icon_heart_like_bg"
android:gravity="center">
- @dimen/dp_40
-
-
-
-
-
\ No newline at end of file
diff --git a/skin/mogo-skin-light/src/main/module-v2x-res/drawable-ldpi/v2x_back_image_light.png b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-ldpi/v2x_back_image_light.png
new file mode 100644
index 0000000000..532c21499d
Binary files /dev/null and b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-ldpi/v2x_back_image_light.png differ
diff --git a/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/icon_history_heart_back_light.png b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/icon_history_heart_back_light.png
new file mode 100644
index 0000000000..20b806a8cb
Binary files /dev/null and b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/icon_history_heart_back_light.png differ
diff --git a/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/v2x_back_image_light.png b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/v2x_back_image_light.png
new file mode 100644
index 0000000000..532c21499d
Binary files /dev/null and b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-mdpi/v2x_back_image_light.png differ
diff --git a/skin/mogo-skin-light/src/main/module-v2x-res/drawable-xhdpi/icon_history_heart_back_light.png b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-xhdpi/icon_history_heart_back_light.png
new file mode 100644
index 0000000000..63d3c57392
Binary files /dev/null and b/skin/mogo-skin-light/src/main/module-v2x-res/drawable-xhdpi/icon_history_heart_back_light.png differ
diff --git a/skin/mogo-skin-light/src/main/module-v2x-res/drawable/bg_v2x_surrounding_event_list_item_light.xml b/skin/mogo-skin-light/src/main/module-v2x-res/drawable/bg_v2x_surrounding_event_list_item_light.xml
new file mode 100644
index 0000000000..05f8c02d99
--- /dev/null
+++ b/skin/mogo-skin-light/src/main/module-v2x-res/drawable/bg_v2x_surrounding_event_list_item_light.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file