How can I detect what part of image is pressed

Hi, I am new in xamarin, and I need to create an app for android in which I have image of a car from a side. I want to make that, when i press one of the doors, pop-up comes(different pop-up for different door). It doesnt have to be perfect, clickable area can be rectangle. How can I do this?

Best Answer

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
    Can you use transparent buttons?
  • misko101misko101 HRMember ✭✭

    I could but image and button doesnt line up on different devices, or when i shift from portrait to landscape.

  • misko101misko101 HRMember ✭✭

    I dont know how that would help me, as far as I know they still wouldnt align. Can you explain how would u do it with a grid?

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    can you attach your image here? I would like to do some tests

  • misko101misko101 HRMember ✭✭

    Hi, sorry I didnt reply earlier, I manage to make it work using RelativeLayout and GridLayout, and i align them with layout_alignLeft,Right,Top and Bottom. Thank you for pointing me in right direction.

Sign In or Register to comment.