From 747914978369ec01d1f6393e83fd2b38ce83202f Mon Sep 17 00:00:00 2001 From: liujing Date: Tue, 8 Dec 2020 19:38:39 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20vr=E6=A8=A1=E5=BC=8F=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=BC=B9=E6=A1=86=E8=83=8C=E6=99=AF=E8=89=B2=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?-xml=E6=96=87=E4=BB=B6=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v2x/adapter/holder/V2XRoadEventVH.java | 4 +- .../drawable/bg_v2x_event_type_orange_vr.xml | 9 ++ .../src/main/res/drawable/v2x_bg_pop_up.xml | 9 ++ .../layout/item_v2x_fatigue_driving_vr.xml | 89 ++++++++++++++ .../res/layout/item_v2x_fault_help_vr.xml | 114 ++++++++++++++++++ .../layout/item_v2x_illegal_parking_vr.xml | 91 ++++++++++++++ 6 files changed, 314 insertions(+), 2 deletions(-) create mode 100644 modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_type_orange_vr.xml create mode 100644 modules/mogo-module-v2x/src/main/res/drawable/v2x_bg_pop_up.xml create mode 100644 modules/mogo-module-v2x/src/main/res/layout/item_v2x_fatigue_driving_vr.xml create mode 100644 modules/mogo-module-v2x/src/main/res/layout/item_v2x_fault_help_vr.xml create mode 100644 modules/mogo-module-v2x/src/main/res/layout/item_v2x_illegal_parking_vr.xml 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 4ca754aec1..667ffad0fb 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 @@ -10,6 +10,7 @@ import android.widget.ImageView; import android.widget.TextView; import com.mogo.commons.debug.DebugConfig; +import com.mogo.module.common.MogoApisHandler; import com.mogo.module.common.entity.MarkerExploreWay; import com.mogo.module.common.entity.MarkerUserInfo; import com.mogo.module.common.entity.V2XEventShowEntity; @@ -56,7 +57,6 @@ import static com.mogo.module.v2x.V2XConst.MODULE_NAME; */ public class V2XRoadEventVH extends V2XBaseViewHolder { private static final String TAG = "V2XRoadEventVH"; - private static final boolean isVrMap = false; private MogoImageView ivEventImg; private MogoImageView ivReportHead; private ImageView ivEventPlay; @@ -139,7 +139,7 @@ public class V2XRoadEventVH extends V2XBaseViewHolder { } public V2XRoadEventVH(ViewGroup viewGroup) { - super(isVrMap ? + super(MogoApisHandler.getInstance().getApis().getStatusManagerApi().isVrMode() ? LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_v2x_event_detail, viewGroup, false) : LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_v2x_event_detail_vr, viewGroup, false) ); diff --git a/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_type_orange_vr.xml b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_type_orange_vr.xml new file mode 100644 index 0000000000..04481967b1 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/drawable/bg_v2x_event_type_orange_vr.xml @@ -0,0 +1,9 @@ + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/drawable/v2x_bg_pop_up.xml b/modules/mogo-module-v2x/src/main/res/drawable/v2x_bg_pop_up.xml new file mode 100644 index 0000000000..4f4bca8d1c --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/drawable/v2x_bg_pop_up.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fatigue_driving_vr.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fatigue_driving_vr.xml new file mode 100644 index 0000000000..e6ffe54e9d --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fatigue_driving_vr.xml @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fault_help_vr.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fault_help_vr.xml new file mode 100644 index 0000000000..d4d94d03f4 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_fault_help_vr.xml @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/modules/mogo-module-v2x/src/main/res/layout/item_v2x_illegal_parking_vr.xml b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_illegal_parking_vr.xml new file mode 100644 index 0000000000..fd0cc320c0 --- /dev/null +++ b/modules/mogo-module-v2x/src/main/res/layout/item_v2x_illegal_parking_vr.xml @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + +