--- title: "Tag Android Views" slug: "tag-android-views" updated: 2026-08-06T15:34:25Z published: 2026-08-06T15:34:25Z canonical: "support.whatfix.com/tag-android-views" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Tag Android Views ### Why should you tag Android views? The Whatfix Mobile SDK uniquely identifies the screen of native apps with the properties of a UI element like resource-id, tag, content-description, and more on the screen. Adding any of these properties helps in identifying the element and hence the app screen more accurately. ### How to add a resource-id to any view? A resource-id is a unique identifier for any [view](https://data-flair.training/blogs/android-layout-and-views/). It can be added via XML. ``` ``` --- ### How to add a tag to a view? Tags are extra information associated with a view. A tag can be added in two ways: - Using Java - Using XML #### Using Java ``` button.setTag("tag_btn_ok"); ``` #### Using XML ``` ``` --- ### How to add content-description to a view? The content-description describes the purpose of a particular view.          Info           For more information on content-description, see [Describe each UI element](https://developer.android.com/guide/topics/ui/accessibility/apps#describe-ui-element). The content-description attribute can be added in two ways: - Using Java - Using XML #### Using Java ``` imageView.setContentDescription("Arrow Icon"); ``` #### Using XML ``` ```