java android change action_settings text -


is there anyway change action_settings text in run time? possible in strings.xml file want in run time. tried before?

i not sure if on right path, want display time @ location of "settings" text. settings appear on right top corner of application. on title bar. thinking change text of settings label resource, should work.

you can use settitle.

for example

menuitem settings = menu.finditem(r.id.action_settings); settings.settitle("your title"); 

you can call code in onprepareoptionsmenu.

i hope you.


Comments

Popular posts from this blog

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -