简体   繁体   中英

XML not well formed exception - on specific characters

Hi I am trying to make an arrow buttons with the characters: "<" , ">"
For some reason it screams on : android:text="<"
If I change to "*" for example, it will get complied successfully what should I change?

Try using &lt; for < and &gt; for > instead inside the double quotes.

android:text="&lt;"

or

android:text="&gt;"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM