Here is the code and i want to setText the Array of Textview after the random Images selected.. its not updating the textVew. I am passing Context and view to the construct
You should call postInvalidate()
after setText(...)
, not in advance !
...
_HudTextDisplay[i].setText(_hiddenObjects[i].getTag().toString());
_HudTextDisplay[i].postInvalidate();
...
for anyone who is having this problem, you may have to place your setText method inside this
((Activity) context).runOnUiThread(new Runnable() {
@Override
public void run() {
((EditText)editText).setText(text);
}
});