3

I have a string defined in my String.xml file that uses format arguments, i.e.:

<string name="myStr">Part No.(Part Sr. No.)</string>

I have assign string for TextView

<TextView android:text="@string/myStr"/>

There is error occurred for assign string value for TextView. How is it do format string for TextView?? Please help me.

Thanks! Nitin

Nitin Karale
  • 789
  • 3
  • 12
  • 34

1 Answers1

2

To allow for all characters in your string, you must mark is as not formatted:

<string name="myStr" formatted="false">Part No.(Part Sr. No.)</string>
Szymon
  • 42,577
  • 16
  • 96
  • 114