修改测试问题,shouye ytuijian
This commit is contained in:
parent
b465cdc455
commit
28a1169a89
@ -1,7 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<alpha
|
|
||||||
android:duration="700"
|
<translate
|
||||||
android:fromXDelta="100%p"
|
android:fromXDelta="0"
|
||||||
android:toXDelta="0%p" />
|
android:fromYDelta="0"
|
||||||
|
android:toXDelta="-40"
|
||||||
|
android:toYDelta="0" />
|
||||||
|
<scale
|
||||||
|
android:pivotX="50%"
|
||||||
|
android:pivotY="50%" />
|
||||||
</set>
|
</set>
|
@ -55,7 +55,7 @@
|
|||||||
android:layout_width="28dp"
|
android:layout_width="28dp"
|
||||||
android:layout_height="28dp"
|
android:layout_height="28dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="7dp"
|
||||||
android:background="@drawable/bg_white_clip"
|
android:background="@drawable/bg_white_clip"
|
||||||
android:visibility="visible">
|
android:visibility="visible">
|
||||||
|
|
||||||
|
@ -7,6 +7,9 @@ import android.util.AttributeSet;
|
|||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.animation.AlphaAnimation;
|
import android.view.animation.AlphaAnimation;
|
||||||
import android.view.animation.Animation;
|
import android.view.animation.Animation;
|
||||||
|
import android.view.animation.AnimationSet;
|
||||||
|
import android.view.animation.AnimationUtils;
|
||||||
|
import android.view.animation.ScaleAnimation;
|
||||||
import android.view.animation.TranslateAnimation;
|
import android.view.animation.TranslateAnimation;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
@ -95,11 +98,12 @@ public class FloatBannerView extends FrameLayout {
|
|||||||
ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1);
|
ImgLoader.displayAvatar(getContext(), list.get(index).getAvatar(), clipImage1);
|
||||||
Animation animation = new TranslateAnimation(0, -40, 0, 0);
|
Animation animation = new TranslateAnimation(0, -40, 0, 0);
|
||||||
animation.setFillAfter(true);
|
animation.setFillAfter(true);
|
||||||
animation.setDuration(700);
|
animation.setDuration(800);
|
||||||
|
|
||||||
|
|
||||||
Animation animation2 = new AlphaAnimation(1, 0);
|
Animation animation2 = new AlphaAnimation(1, 0);
|
||||||
animation2.setFillAfter(true);
|
animation2.setFillAfter(true);
|
||||||
animation2.setDuration(800);
|
animation2.setDuration(900);
|
||||||
|
|
||||||
animation.setAnimationListener(new Animation.AnimationListener() {
|
animation.setAnimationListener(new Animation.AnimationListener() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user