private void show() { progress = true; /* * http://en.wikipedia.org/wiki/Frame_rate * * while single-millisecond visual stimulus may have a perceived duration * between 100ms and 400ms due to persistence of vision in the visual cortex. */ handler.sendEmptyMessageDelayed(SHOWBAR, showed ? 250 : 0); }
private void showContent(String title, String content) { handler.sendMessage(handler.obtainMessage(SHOWCONTENT, new String[] {title, content})); showed = true; }
private void dismiss() { handler.sendEmptyMessage(DISMISSBAR); progress = false; }