亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

方法不適用參數

方法不適用參數

qq_叁火Bao_03130340 2016-10-12 16:51:04
老師,我要做的是點擊一個按鈕出現進度提示框5秒后消失 出現錯誤:The method show(Context, CharSequence, CharSequence) in the type ProgressDialog is not applicable for the arguments (new View.OnClickListener(){}, String, String)我的代碼是:bt1 = (Button)findViewById(R.id.button2);? ? ? ? et1 = (EditText) findViewById(R.id.editText1);? ? ? ??? ? ? ? bt1.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { final ProgressDialog dialog = ProgressDialog.show(this, "Doing something","P;ease wait..."); new Thread(new Runnable() { @Override public void run() { try{ Thread.sleep(5000); dialog.dismiss(); }catch (InterruptedException e){ e.printStackTrace(); } } }).start(); } });麻煩老師幫我看一下吧
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 1155 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號