It’s not enough to use only Canvas to work with dynamic UI elements that use shadows, real-time filters for photo or video, or responsive UI or lighting. It would be best if you had something more powerful. In the past, we were able to use RenderScript for this, but is it supported anymore?
https://proandroiddev.com/how-to-use-shaders-for-android-view-and-how-android-view-may-use-shaders-79eecedd26e9
https://proandroiddev.com/how-to-use-shaders-for-android-view-and-how-android-view-may-use-shaders-79eecedd26e9