开发者

error with abs() in SurfaceView

开发者 https://www.devze.com 2023-02-25 17:15 出处:网络
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 succes

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

精彩评论

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