From 0d71a377db5cbba78939307182da9c906f79ba97 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Thu, 13 Aug 2020 11:33:41 +0800 Subject: [PATCH] opt --- .../v2x/fragment/V2XSurroundingFragment.java | 20 +++++++++++++++++++ ...odule_event_panel_fragment_surrounding.xml | 19 +++++++++++++----- 2 files changed, 34 insertions(+), 5 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 9766af55f0..17d4904862 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 @@ -9,9 +9,12 @@ import android.text.style.AbsoluteSizeSpan; import android.text.style.ForegroundColorSpan; import android.text.style.StyleSpan; import android.util.Log; +import android.view.LayoutInflater; import android.view.View; +import android.view.ViewGroup; import android.view.animation.AccelerateInterpolator; import android.view.animation.LinearInterpolator; +import android.widget.ImageView; import android.widget.RelativeLayout; import android.widget.TextView; @@ -35,6 +38,8 @@ import com.mogo.module.v2x.adapter.V2XSurroundingAdapter; import com.mogo.module.v2x.entity.panel.SurroundingConstruction; import com.mogo.module.v2x.listener.SurroundingItemClickListener; import com.mogo.module.v2x.presenter.SurroundingEventPresenter; +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.service.IMogoServiceApis; @@ -68,6 +73,9 @@ public class V2XSurroundingFragment extends MvpFragment poiInfosList = new ArrayList<>(); private IMogoServiceApis mApis; + private V2XAnimationManager mV2XAnimationManager; + private ImageView mloadingImage; + @Override protected int getLayoutId() { @@ -75,9 +83,17 @@ 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); @@ -85,6 +101,7 @@ public class V2XSurroundingFragment extends MvpFragment exploreWayList) { + mV2XAnimationManager.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 fb62717df6..deeae6aa1c 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 @@ -11,7 +11,7 @@ android:id="@+id/layout_top" android:layout_width="match_parent" android:layout_height="35px" - android:visibility="visible"> + android:visibility="gone"> @@ -92,7 +93,7 @@ android:layout_marginTop="1px" android:gravity="center_horizontal" android:text="你可以试着分享一个事件给其他车主" - android:textColor="@color/transparent_white_30" + android:textColor="@color/white" android:textSize="18px" android:textStyle="bold" /> @@ -127,6 +128,14 @@ + + +