Android simple textview text change with timer

前端 未结 2 810
情深已故
情深已故 2021-01-15 21:09

I am new to android and just starting through some tutorial videos. My requirement is initially i need to show the textview text to \"red\" and after 5-10 sec, need to chang

2条回答
  •  日久生厌
    2021-01-15 21:45

    Try to Use Handler,

    Handler h=new Handler();
    h.postDelayed(new Runnable(){
    public void run(){
    //change your text here
    }
    }, time_delay);
    

提交回复
热议问题