java - How to display textview dynamic value for localization of android -


hello friends want integrate multiple languages in application made multiple values folder different languages. question how can display dynamic textview value comes web api string value. how can display language per choice application. below have mentioned code. please me. thanks!

main.java

textview textview; @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.fragment_main);    textview=(textview)findviewbyid(r.id.textview1);     textview.settext("my custom text comes web api");     } 

you can use dynamic value in textview localization in resource folder. can localize text country code , language code. like:

res/values-en/string.xml res/values-hi/string.xml res/values-in-gu/string.xml 

read more


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -