コード例 #1
0
        @Override
        public void handleMessage(Message msg) {
          switch (msg.what) {
            case 0:
              time--;
              getCode.setText(time + "s");
              break;
            case 1:
              getCode.setBackgroundResource(R.drawable.border_getcode_orange);
              getCode.setText("重新获取");
              getCode.setClickable(true);
              time = 59;

              break;
          }
          super.handleMessage(msg);
        }
コード例 #2
0
 @Override
 public void onCreate(@Nullable Bundle savedInstanceState) {
   userInfo = MyAccount.getInstance().getUserInfo();
   super.onCreate(savedInstanceState);
 }