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 7900817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:03:37+00:00 2026-06-03T09:03:37+00:00

I implemented the OnTouchListener for my Layout including every layout/widget in it and I

  • 0

I implemented the OnTouchListener for my Layout including every layout/widget in it and I was successfully able to retrieve the direction of the swipe and the ID of the widget/layout that received the swipe.

My question is if the user swiped on two or more different objects, for example he swiped from left to right on two buttons, the first button receives the touch event and I get the id of that button only. how can I retrieve all the ids of the objects on which the swipe was made (same as the swipe keyboard functionality)?

Is there a way to get the ID of every object that the user touched during his swipe movement by the X and Y of the touch event?

Thanks.

  • 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-06-03T09:03:38+00:00Added an answer on June 3, 2026 at 9:03 am

    If i understand your Problem currently then you can do like below.

    in OnTouch method of button use below code inside.

      LinearLayout mLinearlayout=(LinearLayout) v.getParent(); 
    

    By this way you will get Button Parent View and now do process of getting Other View from Parent.Here i Use LinearLayout just for Example ,Because i have LinearLayout as parent of my Button View.

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

Sidebar

Related Questions

I have a listView. In that listView i have implemented onTouchListener. Every things work
I implemented the Facebook registration on my website. Everything works fine except that suddenly
I implemented Adwhirl into my new universal app. And was able to get the
I implemented class that serves as TcpCLient server. Looks like this: { [Export] public
I have implemented (from here- horizontal swipe on listview ) swipe gesture to mark-unmark
I have developed an application in which i have implemented ontouchlistener with which i
I've developed some code that implements a timer - it ticks every second and
Actually I'm trying to implement an ontouchlistener into my android (1.5) application. therefore i
Implemented a generic repository with several Methods. One of those is this: public IEnumerable<T>
I implemented the exception filter like here: http://www.asp.net/web-api/overview/web-api-routing-and-actions/exception-handling And registered it globally, like microsoft

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.