tags:

views:

63

answers:

3

I would to enter in some comments into the layout XML files, how would I do that?

thanks, Dean

+3  A: 

XML comments start with <!-- and end with -->.

For example:

<!-- This is a comment. -->
Dan Dyer
+1  A: 
<!-- comment here -->
Wesley Wiser
+5  A: 

As other said, the comment in XML are like this

<!-- this is a comment -->

Notice that they can span on multiple lines

<!--
    This is a comment
    on multiple lines
-->

But they cannot be nested

<!-- This <!-- is a comment --> This is not -->

Also you cannot use them inside tags

<EditText <!--This is not valid--> android:layout_width="fill_parent" />
klez