How To display the Symbols: @ and " in textView in android i’m currently using the code
android:text="@" and
android:text="""
but it shows errors:
1
Exception details are logged in Window > Show View > Error Log
The following classes could not be found:
– TextView (Change to android.widget.TextView, Fix Build Path, Edit XML)
I also tried to put the value in to the String.But Same result.
it showed this error:”error: Error: No resource type specified (at ‘atTheRate’ with value ‘@’).”
android:text="@string/atTheRate"
make it android:text=”@” this should work fine but it seems that you missed the
=sign for"symbol use escape sequence character like this\"android:text="\""update
the error occur since you don’t have a string in your
strings.xmlresource file with the name ofatTheRate