boolean android.view.View.performClick()
public boolean performClick ()
Added in
API level 1
Call this view's OnClickListener, if it is defined. Performs all normal actions associated with clicking: reporting accessibility event, playing a sound, etc.
Returns
performClick();命令点击某个按钮findViewById(R.id.btn_Fail).performClick();