Nudges - Handling Invisible Containers

If there is an invisible container, please follow the below steps for Product Experience SDK to ignore that container:

  1. Add a file named tags.xml in the values folder of resources.

  2. Add the following lines in tags.xml:

<resources>
 <item name="hansel_ignore_view" type="id"/>
 <item name="hansel_ignore_view_excluding_children" type="id"/>//Supported from Nudge SDK v8.8.2
</resources>

Note: If you want to ignore a view excluding its children views, you can use the method hansel_ignore_view_excluding_children.

  1. Add this as a tag to the transparent view that you want Product Experience SDK to ignore:
findViewById(R.id.viewToBeIgnoredId).setTag(R.id.hansel_ignore_view,true);
findViewById(R.id.viewToBeIgnoredExcludingChildren).setTag(R.id.hansel_ignore_view_excluding_children, true);//Supported from Nudge SDK v8.8.2