alexvasilkov / GestureViews

ImageView and FrameLayout with gestures control and position animation
Apache License 2.0
2.37k stars 384 forks source link

How to improve the drawing efficiency of this View? #152

Closed MonstersXu closed 4 years ago

MonstersXu commented 4 years ago

I have turned on hardware acceleration through setLayerType(LAYER_TYPE_HARDWARE, null), but the animation effect is still very stuck on some phones..

alexvasilkov commented 4 years ago

I'll close this issue as it is too vague. You don't provide any info except that it is "very stuck on some phones".

Note that you don't need to set hardware acceleration unless you excplicitly disabled it yourself. If your activity has a mix of software and hardware accelerated views then it can be a problem as well.