I am already well aware of how easy it is to make a multilanguage app with Android by using the string.xml code. That part was nice and easy.
The issue is I have a lot of dynamic texts in my app that are made with my Java code. This is the part where I am can't find how to also make multilingual. The way I am picturing a solution is having some kind of condition in which I verify what language it is in, and change the string. For example:
if(language.equals(English))
textView1.setText("Hi! This is in English!");
if(language.equals(Portuguese))
textView1.setText("Oi! Isso é em Português!");
Is it possible for me to do something like this? If so, how can I do it?
Thanks!