From f5ac8eb6c6bdafb1a58f602fa3d70791f5b5be88 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Thu, 13 Aug 2020 15:32:32 +0800 Subject: [PATCH] opt ui --- .../v2x/fragment/V2XSurroundingFragment.java | 13 +- ...odule_event_panel_fragment_surrounding.xml | 213 +++++++++--------- 2 files changed, 114 insertions(+), 112 deletions(-) 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 be559a2494..5950e8e8fc 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 @@ -42,6 +42,7 @@ import com.mogo.module.v2x.utils.animation.AnimationResources; import com.mogo.module.v2x.utils.animation.V2XAnimationManager; import com.mogo.module.v2x.view.SurroundingEventView; import com.mogo.module.v2x.view.SurroundingMarginDecoration; +import com.mogo.module.v2x.view.V2XNetworkLoadingView; import com.mogo.service.IMogoServiceApis; import com.mogo.service.MogoServicePaths; import com.mogo.utils.WorkThreadHandler; @@ -73,8 +74,7 @@ public class V2XSurroundingFragment extends MvpFragment poiInfosList = new ArrayList<>(); private IMogoServiceApis mApis; - private V2XAnimationManager mV2XAnimationManager; - private ImageView mloadingImage; + private V2XNetworkLoadingView mloadingImage; @Override @@ -93,7 +93,6 @@ public class V2XSurroundingFragment extends MvpFragment "); - mV2XAnimationManager = new V2XAnimationManager(); mRecyclerView = findViewById(R.id.surrounding_recycleview); mTotalTv = findViewById(R.id.tv_brief); mTopLayout = findViewById(R.id.layout_top); @@ -154,8 +153,9 @@ public class V2XSurroundingFragment extends MvpFragment exploreWayList) { - mV2XAnimationManager.stop(); - mloadingImage.setVisibility(View.GONE); + mloadingImage.stop(); if (exploreWayList != null && exploreWayList.size() > 0) { //展示数据 mTopLayout.setVisibility(View.VISIBLE); 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 1ce8a4fed9..33f17a7ba6 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 @@ -6,119 +6,32 @@ android:layout_height="match_parent" android:background="@drawable/bg_v2x_event_surrounding_item"> - - - - - - - - - - - - - + android:layout_height="match_parent"> + - - + android:textSize="@dimen/module_v2x_surrounding_top_textsize" /> - - - - + + + + + + + + + + + + + + + + + + + + - + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_centerInParent="true" />