<string name="text"><xliff:g id="name1">%s</xliff:g> 안녕하세요 <xliff:g id="name2">%s</xliff:g> </string>

 

이런식으로 text라는 하나의 string안에 동적인 두 name1,name2 텍스트를 넣고 싶습니다.

 

 

자바 소스상으론

 

String name1 = "홍길동";
  getContext().getString(R.string.signupcomplete_description, name1);

 

String name2 = "고길동";
  getContext().getString(R.string.signupcomplete_description, name2);

 

이런식으로 넣었고

 

xml에선

 

android:text="@string/text"

 

이렇게 넣었습니다.

 

그런데 화면상으론 %s 안녕하세요 %s 이렇게 뜨네요

 

어떻게 하면 될까요??