开发者

error with abs() in SurfaceView

I am calling a开发者_开发知识库bs(int) in a SurfaceView class and getting error msg that abs(int) is undefined for Preview - that is my SurfaceView class. I've googled for this but without much success. The hint system is not telling me an import is needed so I wonder if anyone can help.


abs() is not defined in SurfaceView. Try Math.abs(int).


Do you actually want to use the java.lang.Math.abs(int value) function? Or do you have a method with this name? It does not exist in SurfaceView, though.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜