It is common for everyone to encounter this situation.
First look at the situation that caused the lag
One is the phone configuration is too low, the memory is seriously insufficient.
The second is that there are too many time consuming actions in your UI thread.
But there is also the case that the phone configuration is also available, and that the UI thread is not doing anything in the same way. That makes us very tangled, right.
I also encountered this situation, very tangled, read a lot of information, finally found the reason; So hurriedly take down the notes.
Android starts with 3.0 (API level 11), supports hardware acceleration when drawing view, takes advantage of GPU features, makes drawing smoother, but consumes more memory. This problem is locked in hardware acceleration, and the solution comes into being: turn off hardware acceleration.
It would be nice to add android:hardwareaccelerated= "false" to this activity.
Pop-up windows or ProgressBar and other lag phenomena