I get zero value when trying to find the coordinate value of the imageview in android -


i implemented code imageview added in layout. getting starty=0.

matrix matrix = iv.getimagematrix (); float[] values = new float[]; matrix.getvalues(values); float starty = values[5]; 

i tried

 int i=iv.getbottom(); 

this returning 0. can find coordinate value of imageview in layout.

i believe view.getlocationonscreen() and/or view.getlocationinwindow() you're looking for.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -