U
U
Username2016-04-25 21:16:11
Android
Username, 2016-04-25 21:16:11

How to fix problems with DrawerLayout(side menu)?

Good afternoon. There is a problem with the DrawerLayout(side menu) object. Inside there is its own layout, hedaer consists of a picture as a background and an ImageView (avatar), the structure is like in the Vkontakte application. Opening and closing the menu on Android 4.4 is smooth and the pictures are displayed correctly, while Android Studio shows no more than 20% CPU usage. But on android 5.0.2 and 5.1.0 (in general, by 5 >=), it moves extremely buggy, the nomination process takes 5-7 seconds, while the avatar remains just black. When we remove all the pictures and pictures, everything works well. The question is - what should be done to fix this problem?
B3AHn7kmxcM.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Pavlovsky, 2016-04-25
@dalv_happy

Check out the image resources. Unload drawable resources into folders.

S
sergiu3dmd, 2016-04-26
@sergiu3dmd

enable: Developer options->Debug GPU overdraw
blue green good . :)
developer.android.com/intl/ru/tools/performance/de...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question