老師,我要做的是點(diǎn)擊一個(gè)按鈕出現(xiàn)進(jìn)度提示框5秒后消失 出現(xiàn)錯(cuò)誤: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(); } });麻煩老師幫我看一下吧
方法不適用參數(shù)
qq_叁火B(yǎng)ao_03130340
2016-10-12 16:51:04