I am working on localization if an app in android studio. While using xliff in the below code, I see the "%s" display in my screen.
<string name="name">Name <xliff:g id="get_name" example="Diana">%s</xliff:g></string>
I know that the %s is supposed to display any text that is input by the user.
Below is my activity.xml code:
<EditText
android:id="@+id/name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/name"
android:inputType="textCapWords"
android:paddingBottom="8dp"/>
In the output, I want the hint to be shown as Name but it shows as Name %s. is this a normal behavior? Is there anything that I am doing wrong here?