예제 #1
0
 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);
 }
예제 #2
0
 private void showContent(String title, String content) {
   handler.sendMessage(handler.obtainMessage(SHOWCONTENT, new String[] {title, content}));
   showed = true;
 }
예제 #3
0
 private void dismiss() {
   handler.sendEmptyMessage(DISMISSBAR);
   progress = false;
 }