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
  • 807
  • 3
  • 11
  • 33

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
  • 41,995
  • 16
  • 94
  • 113