23 March 2013

How to insert % character into xml in android

As you know ,there are few illegal character to use in xml in Android.
  • &
  • <
  • >
  • "
  • '
However ,I was a bit suprised to see that .... using % character cause  a error too.To make things more weird .. using \% doesn't help either.

SOLUTION
Use:    \%%
to display %



No comments:

Post a Comment