xamarin.forms - Xamarin programmatically change Textview.Text to a resource string -


a simple android app , tried code change textview.text string in resources file, , approach :

private void btnclickme_click(object sender, system.eventargs e)     {         textview txtview = findviewbyid<textview>(resource.id.textview1);          txtview.text = "@string/someword";     } 

any help!

try code,

text.text = resources.getstring(resource.string.app_name);


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -