On MVP pattern, i have string with dynamic value %
Example:
<string name="hello">%s hello</string>
and i need set this text with "my name" on my textview, how i will do this witout reference direct a R.String on my presenter layer.
public void onItemClicked(String name) {
if (mainView != null) {
//HOW use R.string.hello from Strings here? [presenter layer]
mainView.showMessage(String.format("%s hello", name));
}
}
On MVP pattern i cant have any reference an Android class in presenter layer, i dont have any context in this class, but i need use R.string.hello, because translate, how i can take this witouth ruins this MVP pattern