confirm.setOnClickListener(null);
这使得按钮不可点击,但是我希望在用户单击另一个按钮后可以点击该按钮.
我该怎么做?
confirm.setClickable(假);禁用并confirm.setClickable(true)重新启用它.
See Here