我首先得到延迟,然后显示文本,但我想首先显示文本然后创建延迟???
TextView textView=(TextView)findViewById(R.id.correct_word)
textView.setText("Delay is created");
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
//your code
}
}, 2000);
答案 0 :(得分:0)
在textView.setText("Delay is created");
的{{1}}方法中移动Runnable
:
run()