how to edit an android animation interpolator? -


i need make scale driven animated dialog.. want bounce effect tried bounce interpolater

<scale xmlns:android="http://schemas.android.com/apk/res/android"     android:duration="500"     android:fromxscale="0"     android:fromyscale="0"     android:interpolator="@android:anim/bounce_interpolator"     android:toxscale="1"     android:toyscale="1" /> 

i want modify bounce effect make slower/faster , size bounce to. didnt find anything, t tried make sets

<set >     <scale         xmlns:android="http://schemas.android.com/apk/res/android"         android:duration="500"         android:fromxscale="0"         android:fromyscale="0"         android:toxscale="1"         android:toyscale="1" />     <scale         xmlns:android="http://schemas.android.com/apk/res/android"         android:duration="100"         android:fromxscale="1"         android:fromyscale="1"         android:startoffset="500"         android:toxscale=".8"         android:toyscale=".8" />     <scale         xmlns:android="http://schemas.android.com/apk/res/android"         android:duration="100"         android:fromxscale=".8"         android:fromyscale=".8"         android:startoffset="600"         android:toxscale="1"         android:toyscale="1" /> </set> 

the whole animation acts strangely? question how fix animation set or how modify bounce_interpolator?

use ipfx.org create custom interpolators.
take bounce example , edit needs.
http://ipfx.org/?p=7ffffffe575efffe9e02fffed8f6fffe&l=2f13c5ac138b3d6ad338a5a77a8386807d6e

than use created interpolator in app ()

import org.ipfx.interpolator;  ... ...  final org.ipfx.interpolator interpolator = org.ipfx.interpolator.parseurl(urldata);  objectanimator animator = objectanimator.offloat(...); animator.setduration(1000);  animator.setinterpolator(new timeinterpolator() {     @override     public float getinterpolation(float input) {         return interpolator.calc(input);     } });  animator.start(); 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -