From 0a36dc99f33fd82843ddb65f7783736e9ff5b99a Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Wed, 10 Aug 2022 16:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98,shouye=20ytuijian?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../res/layout/view_home_float_banner.xml | 34 ++++++++++++------- .../yunbao/main/views/FloatBannerView.java | 13 +++---- .../layout/view_search_recommend_heard.xml | 4 +-- 3 files changed, 30 insertions(+), 21 deletions(-) diff --git a/common/src/main/res/layout/view_home_float_banner.xml b/common/src/main/res/layout/view_home_float_banner.xml index 21e04c5e3..c3a1c764a 100644 --- a/common/src/main/res/layout/view_home_float_banner.xml +++ b/common/src/main/res/layout/view_home_float_banner.xml @@ -17,27 +17,31 @@ android:paddingEnd="7dp" android:paddingBottom="5dp" /> - + - android:layout_gravity="center" /> - - - @@ -46,25 +50,29 @@ android:id="@+id/clip_image3" android:layout_width="23.5dp" android:layout_height="23.5dp" + android:layout_centerInParent="true" android:layout_gravity="center" /> - + - - + list = new ArrayList<>(); //默认定时器时间 @@ -97,18 +98,18 @@ public class FloatBannerView extends FrameLayout { if (index == 0) { ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1); } - TranslateAnimation animationTranslate = new TranslateAnimation(0, -35, 0, 0); - ScaleAnimation scaleAnim = new ScaleAnimation(1f, 1.15f, 1f, 1.15f, bannerLayout3.getWidth() / 1.1f, bannerLayout3.getHeight() / 1.1f); + TranslateAnimation animationTranslate = new TranslateAnimation(0, -27, 0, 0.2f); +// ScaleAnimation scaleAnim = new ScaleAnimation(1f, 1.16f, 1f, 1.16f); AnimationSet animationSet1 = new AnimationSet(true); animationSet1.setFillAfter(true); - animationSet1.setDuration(750); + animationSet1.setDuration(700); animationSet1.addAnimation(animationTranslate); - animationSet1.addAnimation(scaleAnim); +// animationSet1.addAnimation(scaleAnim); AlphaAnimation animationAlpha = new AlphaAnimation(1, 0); AnimationSet animationSet2 = new AnimationSet(true); animationSet2.setFillAfter(true); - animationSet2.setDuration(750); + animationSet2.setDuration(800); animationSet2.addAnimation(animationAlpha); animationSet2.addAnimation(animationTranslate); bannerLayout1.startAnimation(animationSet2); diff --git a/main/src/main/res/layout/view_search_recommend_heard.xml b/main/src/main/res/layout/view_search_recommend_heard.xml index 4b737b602..44b439550 100644 --- a/main/src/main/res/layout/view_search_recommend_heard.xml +++ b/main/src/main/res/layout/view_search_recommend_heard.xml @@ -26,8 +26,8 @@