Photo by Chris Liverani on Unsplash

Common issues with Android Performance

Posted: 01 Nov 2021. Last modified on 04-Jun-22.

This article will take about 4 minutes to read.

Common issues with Android performance

Performance is a topic which is usually saved until the last minute, or treated as tech debt. This writeup goes over some of the common performance issues that happen in Android apps.

The most important one

Doing work on the main thread

Allocations in the onDraw() or onDispatchDraw() methods


Multiple Recyclerview Viewpools

Nested RelativeLayouts and Constraintlayouts

Unnecessarily resizing Recyclerviews on scroll

Setting the background multiple times

Other UI issues

There are more possible recyclerview optimizations, such as the ones outlined here:

Cache miss

Too much data

Too little data

Lack of feedback

Notification of new data