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
Post a Comment