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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:54:46+00:00 2026-06-06T11:54:46+00:00

I have two ImageView s, iv1 and iv2 , where iv2 overlaps on the

  • 0

I have two ImageViews, iv1 and iv2, where iv2 overlaps on the iv1 with 20dp.

Now, if I tap exactly in the region where iv1 is visible, it responds to event, but if I set iv2‘s visibility to GONE or INVISIBLE and also make it’s setEnabled(false), I can see iv1 completely, but still only partial of its region (which was visible behind iv2) is responsive to tap events.

How can I make complete ImageView to be tap responsive if overlapping view is disabled or is invisible?

  • 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-06T11:54:48+00:00Added an answer on June 6, 2026 at 11:54 am

    That’s happening because iv2 is in front of iv1. Try calling iv1.bringToFront();. That will place iv1 in front of iv2 and it’s full area becomes tap responsive.

    And if later you want to change visibility of iv2 you’ll have to call iv2.bringToFront(); to make things like they were before setting iv2 invisible.

    If you want to place iv1 in front of iv2 from the beginning you have to put it’s definition in xml file after iv2’s. The views will be drawn in the order of their appearance in layout xml file. So the first view is on the bottom, the last is on the top.

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

Sidebar

Related Questions

In a ViewGroup I want to put two ImageViews overlapping: The imageview A have
I have two ImageViews, one called imageView and the other called subView (which is
I have a activity where I have two imageViews. In onTouch I recognize which
I have a big problem. I have a activity where I have two imageViews.
I have a layout that contains two ImageViews. I want one of them to
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I am creating an app, in which I have two small imageview (using have
I have list with items having two textview and one imageview.I inflate the list
I have a UIScrollView containing a UIImageView. now I also added a two finger
I have two imageViews that I call firstView and secondView; I have to do

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.