需要添加类似
public SurfaceV(Context context, AttributeSet attrs) {
super(context, attrs);
init(context);
}
AttributeSet是给XML使用的属性。
本文介绍了一个包含Context和AttributeSet参数的公共表面视图组件的初始化方法。AttributeSet用于XML属性设置。
需要添加类似
public SurfaceV(Context context, AttributeSet attrs) {
super(context, attrs);
init(context);
}
AttributeSet是给XML使用的属性。

被折叠的 条评论
为什么被折叠?