android - Flip animation to disable button -


i working on simple animated ui should change buttons enabled disabled. rather changing color red grey button flip.

i've tried simple animation on click of button can rotate button.

any how create flip animation?

flipping animation:

<set android:ordering="sequentially"> <objectanimator android:duration="2000"  android:propertyname="rotationy" android:valuefrom="0"  android:valueto="360"> </objectanimator> </set> 

in class:

animatorset set; set = (animatorset) animatorinflater.loadanimator(this, r.anim.flipping); set.settarget(img_logo); set.start();  timer timer = new timer(); timer.schedule(task, 2000); 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -