New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Low performance and UI lag when animating layer #7
Comments
Probably because the view is being invalidated every time. |
This is a library that you can try here https://github.com/Q42/AndroidScrollingImageView
and put it in your MaskableFrameLayout. |
Well, thats normal. The view is invalidated each time, causing it to mask every time. |
I also use other views like Frame layout inside MaskableFrameLayout and i animate the views inside frame layout and animations are slow there too. The reason that i use this great library is that it makes it available to mask any view! |
Your animation will invalidate each time, causing a masking operation to be executed every time. |
I appreciate, If you can help me. I have two different views with different animations inside two maskable layout. In first one, i need to simulate a world map sphere movement in a loop so i used this lib(https://github.com/Q42/AndroidScrollingImageView):
in second one i just have move and scale animations but i use this (https://github.com/daimajia/AndroidViewAnimations) library for implemented animations
What is your suggestion? |
Use bitmap shaders. |
This is my code that has no lag with frame layout and i animate the inner views very well:
But when i change it to maskable frame layout it gives whole UI a huge lag in animations:
What is wrong that makes this lag appear in the UI?
The text was updated successfully, but these errors were encountered: