0

I'm using subsampling-scale-image-view to display images, and I implemented function like the Gallery app usually do (allow user to view image, zoom then and swipe left or right to switch between images).

I found out that when I swipe to change image, if I scroll fast between two images, the gesture might not work at all. Despite the fact that the FPS displayed is always 60 FPS.

I have setup systrace to find out what causing the performance issue, and it gave me this graph: enter image description here

Am I understand correctly that decodeBitmap function causing my app not responding to gesture?
According to the graph deliverInputEvent and ViewPostImeInputStage takes a lot of time and that's not usual at all. enter image description here

Hhry
  • 823
  • 1
  • 8
  • 19

0 Answers0