opengl es - Updating variables in addcontentview - android -


i have been developing game opengles android , have glsurfaceview displayed. have textview displayed on using

addcontentview(mytextview, new layoutparams(layoutparams.fill_parent, layoutparams.wrap_content) ); 

mytextview contains string made of string plus parsed value of int. eg

 mytextview = new textview(this);  mytextview.settext("score: " + integer.tostring(score) ); 

the textview , integer value display question how update when integer value changes?

you'll have call mytextview.settext("score: " + integer.tostring(score) ); every time score changes.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -