Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:45:08+00:00 2026-05-30T09:45:08+00:00

How to set second finteger to track his movement? I found just second finger

  • 0

How to set second finteger to track his movement? I found just second finger down coordinatesand second finger up coordinates:

Here is my code:

    public boolean onTouchEvent(MotionEvent ev) {

    X = (int) ev.getX();
    Y = (int) ev.getY();

    switch (ev.getAction()) {

    case MotionEvent.ACTION_DOWN: {
        TXdown = (int) ev.getX();
        TYdown = (int) ev.getY();

        invalidate();

        break;

    }


    case MotionEvent.ACTION_MOVE: {



        premik_w = (int) ev.getX()-TXdown+premik_w;
        premik_h = (int) ev.getY()-TYdown+premik_h;

        TXdown = (int) ev.getX();
        TYdown = (int) ev.getY();
        invalidate();
        break;

    }

         case MotionEvent.ACTION_POINTER_DOWN:{
             drugPrstXP = (int)ev.getX();
             drugPrstYP = (int)ev.getY(); 

    }
    case MotionEvent.ACTION_UP:
        premik_w = (int) ev.getX()-TXdown+premik_w;
        premik_h = (int) ev.getY()-TYdown+premik_h;
        invalidate();

        break;

    }
    return true;
}

So pls someone tell me how to track coordinates of second finger and simultaneously of first finger. Cuz I like to do zoom and need movement of this to fingers.
Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:45:09+00:00Added an answer on May 30, 2026 at 9:45 am

    Here is an article that will help you.

    The methods you are looking for are:

    getPointerId(int)

    findPointerIndex(int)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for a second set of eyes here... I am calling this function: customPanel(map,
I need to set/get the cookies stored at first.example while browsing second.example , I
I have a set of 10000 files. In all of them, the second line,
If I set a timer to execute a code every 3 seconds. If the
I'm looking to compare two sets and display the missing elements in second set
In a MVVM WPF application. How do you set a second windows parent from
I have this code Calendar c = new GregorianCalendar(); c.add(Calendar.DAY_OF_YEAR, 1); c.set(Calendar.HOUR_OF_DAY, 23); c.set(Calendar.MINUTE,
Need a second set of eyes. I am getting the following error: 1>c:\users\thom\documents\cworkspace\barnaby\barnaby\timezone.h(15): error
cal.set(Calendar.MONTH, 7); cal.set(Calendar.DATE,13); cal.set(Calendar.HOUR_OF_DAY, 11); cal.set(Calendar.MINUTE, 1); cal.set(Calendar.SECOND, 1); cal.set(Calendar.YEAR, 2011); cal.setTimeZone(TimeZone.getDefault()/*getTimeZone(GMT+5:30)*/); I am
I'm trying to build a custom dropdownlist which show/hide a second set of dropdowns

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.