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

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

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -