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 -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -