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
Post a Comment