Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android XML tag called eat-comment, what is its use?

Noticed while looking through the android sdk of a tag like this:

<eat-comment/>

What is it used for? A reference example for it is here:

https://github.com/android/platform_frameworks_base/blob/master/core/res/AndroidManifest.xml

like image 754
j2emanue Avatar asked Feb 17 '14 19:02

j2emanue


People also ask

What is XML tag android?

XML tags define the data and used to store and organize data. It's easily scalable and simple to develop. In Android, the XML is used to implement UI-related data, and it's a lightweight markup language that doesn't make layout heavy. XML only contains tags, while implementing they need to be just invoked.

What are comments in Android?

This interface inherits from CharacterData and represents the content of a comment, i.e., all the characters between the starting ' <! -- ' and ending ' --> '. Note that this is the definition of a comment in XML, and, in practice, HTML, although some HTML tools may implement the full SGML comment structure.


1 Answers

<eat-comment/> is used to suppress comment lines from the documentation output.

You can read a little bit about it, with examples, here: https://android.googlesource.com/platform/frameworks/base/+/2888524e03896831f487e5dee63f18f1c33c0115/core/res/res/values/attrs.xml

like image 61
andydev Avatar answered Sep 21 '22 09:09

andydev