In my application I want use this library : https://github.com/race604/WaveLoading
This library used canvas flags but not found in my project!
This flags is :
int sc = canvas.saveLayer(0, 0, mWidth, mHeight, null,
Canvas.MATRIX_SAVE_FLAG |
Canvas.CLIP_SAVE_FLAG |
Canvas.HAS_ALPHA_LAYER_SAVE_FLAG |
Canvas.FULL_COLOR_LAYER_SAVE_FLAG |
Canvas.CLIP_TO_LAYER_SAVE_FLAG);
After search I found this solution : Can not find Canvas variables in API Level 28
But when change codes to int sc = canvas.saveLayer(0, 0, mWidth, mHeight, null, Canvas.ALL_SAVE_FLAG); or int sc = canvas.save(); not run any animation!
How can I fix it?