setText is not updating

后端 未结 2 472
长发绾君心
长发绾君心 2021-01-19 01:34

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

2条回答
  •  时光说笑
    2021-01-19 02:03

    You should call postInvalidate() after setText(...), not in advance !

     ...
     _HudTextDisplay[i].setText(_hiddenObjects[i].getTag().toString());
     _HudTextDisplay[i].postInvalidate();
     ...
    

提交回复
热议问题