Here's scenario:
- I have a
RalativeLayout
holdingImageView
and fewTextViews
. - There are "linkified" elements inside these
TextViews
such as URLs, phone numbers, etc. - Clicking on the links result in various actions, also clicking on ImageView triggers some action too.
- Now - I want to have outer onClick attached to the complete area of
RelativeLayout
in such way that if user clicks on any spot withing the layout (but outside of the image and links) then it executes another action
Right now I have layout#onClick
, image#onClick
, and embedded links are processed by Linkify. Image and links clicks are working reliably but clicks on layout are captured about 50% of the time and I suppose would frustrate users to the point of tears. Any tricks that you guys can suggest to improve reliability? And if not what would be a good way of achieving this from the best usability standpoint?