Java tutorial
//package com.java2s; import android.os.Handler; import android.view.View; public class Main { public static void showView(final View layout) { new Handler().postDelayed(new Runnable() { @Override public void run() { layout.setVisibility(View.GONE); } }, 5000); layout.setVisibility(View.VISIBLE); } }