android学习之命令点击按钮

来源:互联网 发布:指纹充电软件下载 编辑:程序博客网 时间:2024/06/06 01:13

boolean android.view.View.performClick()

public boolean performClick ()

Added in APIlevel 1

Call this view's OnClickListener, if it is defined. Performs allnormal actions associated with clicking: reporting accessibilityevent, playing a sound, etc.

Returns  True there was an assignedOnClickListener that was called, false otherwise is returned.

performClick();命令点击某个按钮findViewById(R.id.btn_Fail).performClick();

0 0
原创粉丝点击