Android – how do I hide image buttons?
•
Android
I have an imagebutton. I want to hide the button in oncreate method after 5 seconds. Can anyone help me
resolvent:
onCreate(){
new SleepTask().execute();
}
private class SleepTask extends AsyncTask{
protected void doInBackground(){
Thread.sleep(5000);
}
protected void onPostExecute(){
yourImageButton.setVisiblity(View.INVISIBLE);
}
}
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码