我有1个imageButton,我想在oncreate方法中5秒后隐藏该按钮.谁能帮帮我吗
解决方法:
onCreate(){
new SleepTask().execute();
}
private class SleepTask extends AsyncTask{
protected void doInBackground(){
Thread.sleep(5000);
}
protected void onPostExecute(){
yourImageButton.setVisiblity(View.INVISIBLE);
}
}