I have a string with placeholder e.g
<string name="str_1">Hello %s</string>
I want to use this in xml layout as android:text="@string/str_1". Is there any way to use this in xml layout to fill the placeholder? Thanks in advance. I already know String.format(str,str...) in java/kotlin but i want to use this in xml layout without data binding.
%sfrom somewhere, and DataBinding is the most "xml" way I can think of to achieve it.Hello World)}" or @{String.format(@string/Hello,Hello World)} you can do this data bindingHello worldis in inside back tick