java - Get X/Y coordinates on ImageView touch -


so, need coordinates of touch on imageview.

i have tried coordinates in ontouchlistener event. not need.

the problem resolution of screen lower resolution of picture in imageview.

how actual coordinates (maybe pixels) of image?

android: how x y coordinates within image / imageview?

imageview.setonclicklistener(new onclicklistener() {          @override         public void onclick(view view) {             int[] values = new int[2];              view.getlocationonscreen(values);             log.d("x & y",values[0]+" "+values[1]);         }     }); 

something this?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -