1.自定义surfaceview的时候一定要实现public GameViewSurface(Context context, AttributeSet attrs)两个参数的构造函数,不然会报错
Binary XML file line #6: Error inflating class com.app.fengactivity.GameViewSurface
java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet]