コード例 #1
0
 @Override
 public void handleMessage(Message msg) {
   switch (msg.what) {
     case 10: // show
       networkDialog.show();
       break;
     case 11: // close
       if (networkDialog != null && networkDialog.isShowing()) networkDialog.dismiss();
       break;
     default:
       break;
   }
 }
コード例 #2
0
 @Override
 public void onClick(MTDialog dialog, View view) {
   dialog.dismiss();
 }