1

How to write this > in the XML.

<TextView
    android:id="@+id/textView4"
    android:text="10 > 5"
    android:textStyle="bold"
    android:textSize="30sp"/>

How to write 10 > 5 in android xml

Amrish Kakadiya
  • 974
  • 1
  • 7
  • 25
Dropzz
  • 19
  • 5

2 Answers2

0

In your java file :

textView4.setText("10 > 5");
Gowthaman M
  • 8,057
  • 8
  • 35
  • 54
nimi0112
  • 2,065
  • 1
  • 18
  • 32
0

Put this in your strings.xml file

<string name="_10_5"><![CDATA[10 > 5]]></string>

and use it in xml

android:text="@string/_10_5"

For more Information about CDATA check this

Hope you get the idea

AbhayBohra
  • 2,047
  • 24
  • 36