//定义变量 @ViewInject(R.id.btnPlay) public Button btnPlay; //在onCreate中 x.view().inject(this); 需要添加库: xutils-3.3.34.jar