surfaceview跳转回activity后,activity中的按钮失效是什么原因?新手求教!
我在surfaceview中的部分代码如下:
private MainActivity myactivity = null;
public FistView(MainActivity myactivity)
{
super(myactivity);
this.myactivity = myactivity;
this.setFocusable(true);
}
public boolean onTouchEvent(MotionEvent event)
{
myactivity.setContentView(R.layout.activity_main);
return true;
}