java - Make ImageView visible for set amount of time -
i have onclick method set in xml layout file triggers vibration of phone 100ms @ point have imageview visibility set visible can seen. want imageview set gone again when vibration has stopped. how go this?
you can start method @ same time:
public void timerdelayremoveview(float time, final imageview v) { handler handler = new handler(); handler.postdelayed(new runnable() { public void run() { v.setvisibility(view.gone); } }, time); }
Comments
Post a Comment