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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -