- Forum posts: 3
Mar 23, 2016, 2:01:58 PM via Website
Mar 23, 2016 2:01:58 PM via Website
From GIF you can check how it lags when I switch to left tab because here drawing of image is taking more time if I am not wrong. In other tab images are less so it has no lag but it will surely do, once RecyclerView adds more items (using an adapter). Each item is made using RelativeLayout have 2 TextView, ImageView and ImageButton.
I checked doing the same without loading any images - it works super fast without lag so now it's sure that drawing images is a problem here. I tried LruCache but it didn't solve the problem. Those two tabs are two fragments inside a ViewPager.
Any solution?
— modified on Mar 23, 2016, 4:02:58 PM
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.