I need two navigation buttons with their texts are <
and >
. However, the compiler doesn't allow me use those symbols, even if I use \<
and \>
.
Is there anyway to put these symbol into the XML design file?
I need two navigation buttons with their texts are <
and >
. However, the compiler doesn't allow me use those symbols, even if I use \<
and \>
.
Is there anyway to put these symbol into the XML design file?
Use <
for <
Use >
for >
Use &
for &.
etc.
Use <
for <
Use >
for >
Use &
for &
use "
for "
for complete List of symbol
use &# decimal code of the symbol ; as above
Enjoy Programming..
It is encouraged for Android programmers to store String values in res/values/strings. If you add a String here, you can reference it in your xml file like so: android:text="@string/mystring"
Declare this in string.xml
and use:
<string name="sna">Synonyms & Antonyms</string>
And simply call this in:
<TextView
android:text="@string/s_n_a"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/White"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"/>
Use
<
for <Use
>
for >