D
D
dimasik1002002018-02-04 20:56:49
Java
dimasik100200, 2018-02-04 20:56:49

Created a custom animation for a fab, but after using it, the size of the fab decreases?

I have 3 fab. When you click on the bottom one, the top two should open. If you set the upper value to visible, then when the application starts, they will be of normal size.
5a7748eb2c55a828640935.jpeg
However, after the animation starts, they decrease in size. How to fix it (I will send animation files in the comments)
5a774941a3b6c104973353.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-02-04
@dimasik100200

<scale
        android:fromXScale="0.0"
        android:fromYScale="0.0"
        android:toYScale="0.8"
        android:toXScale="0.8"
        android:pivotX="50%"
        android:pivotY="50%"
        android:duration="300"

        android:interpolator="@android:anim/linear_interpolator"/>

do you see anything suspicious?
for example here:
android:toYScale="0.8"
android:toXScale="0.8"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question