How to get the x y position of a view after zoom-in in android <p>I am Beginner for android, am looking for xy position of a view in zoom-in page but i tried a lot i cant able to get that.I used this below coding, but im getting the same position before and after the zoom. Please any one post the code for finding the xy position after zoom it. </p> <pre><code> private int fieldImgXY[] = new int[2]; v.getLocationOnScreen(fieldImgXY); Log.v("Log",fieldImgXY[0]+" "+fieldImgXY[1]); </code></pre> <p>My full code:</p> <pre><code> zoom = (ZoomView) findViewById(R.id.maincontainerScroller); imageView = new ImageView(this); imageView.setImageResource(R.drawable.ic_launcher); imageView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); zoom.addView(imageView); imageView.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub v.getLocationOnScreen(fieldImgXY); Log.v("Log",fieldImgXY[0]+" "+fieldImgXY[1]); } }); </code></pre>