데이터바인딩 시 xml에서 스트링 포맷을 사용하고 싶다면,
<resources>
<string name="user_format">이름은 %s 나이는 %d</string>
</resources>
strings.xml 에 사용하고자 하는 포맷을 추가해주고
<TextView
android:id="@+id/intro_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="@{@string/user_format(user.name, user.age)}"
android:textSize="16sp"
app:layout_constraintStart_toStartOf="@+id/name_text"
app:layout_constraintTop_toBottomOf="@+id/name_text" />
@strigs/포맷이름(파라미터 값) 으로 포맷을 사용할 수 있다.