使用代码主动去调用控件的点击事件(模拟人手去触摸控件) //View 可以是LinearLayout,Button,TextView View.performClick(); 转载于:https://www.cnblogs.com/woaixingxing/p/6251226.html