Get coordinates of imageview during animation android -


i trying make animation of imageview left right , right left want position of imageview while animation following code. want use coordinates origin display in app. please tell me how this. following code using animate , move position of imageview.

 animation anx = new translateanimation(0,100,0, 0);                 anx.setduration(2000);                 anx.setfillafter(true);                 myimage.startanimation(anx); 

is there function getx() , gety() position.

have u tried set animation listener , starting runnable when animation starts check image getx , gety every milliseconds u want , stop after animation ends


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -