Example strings.xml
<string name="beer">Beer</string>
Example strings (en-us)
<string name="beer">Cerveja</string>
In the code I wanted to reference this:
@Override
public void onClick(View v) {
Toast toast;
switch (v.getId()){
case R.id.ce : toast = Toast.makeText(getApplicationContext(), QUERIA_REFERENCIAR_AQUI ,Toast.LENGTH_SHORT); toast.show(); break;
[...]
default : break;
}
So that there is translation in my app even in these messages, because in the layout, it works fine. Thanks!
Would it be possible?