android TextView setText not working

前端 未结 7 2067
被撕碎了的回忆
被撕碎了的回忆 2021-01-04 02:37

I know there are a lot of similar threads but I\'ve gone through them and still can\'t figure out the problem. My program reaches the Handler but it always returns the catc

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 03:11

    just like this is ok!

    private void setUpViews() {
        chatbox = (TextView) findViewById(R.id.chatbox);
        chatbox.setText("Got it!");
    }
    

提交回复
热议问题