Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Touched position #66

Open
a-v-ebrahimi opened this issue Jan 7, 2015 · 1 comment
Open

Touched position #66

a-v-ebrahimi opened this issue Jan 7, 2015 · 1 comment

Comments

@a-v-ebrahimi
Copy link

How can I find touched position relative to main bitmap?

@mdwem
Copy link

mdwem commented Jul 20, 2015

I tried as well with following code
img.setOnTouchListener(new View.OnTouchListener() {
@OverRide
public boolean onTouch(View v, MotionEvent event) {
// Toast.makeText("Touch coordinates : " +
// String.valueOf(event.getX()) + "x" + String.valueOf(event.getY()));

            Log.i(LOG_TAG,"x =  " + String.valueOf(event.getX()));

            Log.i(LOG_TAG, "y =  " + String.valueOf(event.getY()));


           return true;

However same problem,image does not scale.How can we get the touch coordinates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants