So I want to tell myself some things withing the .xml file using Pseudo code but when I do the // it enters it like a code so I can't really use it in there. Is there something I could do to make the code non readable like Pseudo Code? I'm doing this in an android application. Under the res/layout/(.xml file) folder. Thanks!
How to use Pseudo Code in a .xml file under res/layout folder? Android
972 Views Asked by Fernando At
2
There are 2 best solutions below
0

Comments in HTML & XML are like so:
<!-- this is a comment -->
See On SGML and HTML: Comments for more details.
Suggestion:
<!-- textSize: For the 'hearing impaired'. -->
<TextView
android:text="invalid"
android:textSize="25dp"
android:id="@+id/tvResults"
android:gravity="center"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
The comment in XML are like this
Notice that they can span on multiple lines
But they cannot be nested
Also you cannot use them inside tags