Skip to content
Advertisement

Use String Resource in layout xml along with Java

I have one button view in my layout.xml like below

JavaScript

It have used model condition for display text label in button like below

JavaScript

but I am trying to support multiple language in my app and so I want use string resource there along with java model condition, Let me know if someone have idea about do it, I am new and learning android yet. Thanks!

Advertisement

Answer

You can use:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement