animation - android animate x and y position with ObjectAnimator -


i search in google , @ least mabye found want need animate x , y position if view dont know if code need if need how can x , y in onanimationupdate

did getanimatedvalue give me x or y ? did if call first time givme x , if call again give me y beggener how can x , y inside function

onanimationupdate 

this code valuex x value want animate valuy y value want animate view it

 propertyvaluesholder pvhx = propertyvaluesholder.offloat(chatheadparent.scale_x, valuex);     propertyvaluesholder pvhy = propertyvaluesholder.offloat(chatheadparent.scale_y, valuy);     objectanimator animator = objectanimator.ofpropertyvaluesholder(chatheadparent, pvhx, pvhy);     animator.setduration(50);      animator.addupdatelistener(new valueanimator.animatorupdatelistener() {           @override         public void onanimationupdate(valueanimator animation) {         //i need x , y position animate use them            log.d(" iiiiiiiiiii ",""+animation.getanimatedvalue()+"  "+animation.getanimatedvalue());         }       });      animator.addlistener(new animatorlisteneradapter() {         @override         public void onanimationend(animator animation) {           }     });      animator.start(); 


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -