W
W
WebPlayer2013-09-26 10:48:10
Android
WebPlayer, 2013-09-26 10:48:10

Slows down animation SlidingDrawer (sliding panel)

Hello.

There is a SlidingDrawer component(s) on the screen. When testing the application on various devices, I noticed that on some it slows down terribly: it slides out intermittently (as if with sticking, discretely). And this happens on pretty powerful tubes.

Here is the behavior table:
Samsung Galaxy Pocket S5300 4.1.2 - ok
HTC One V 4.0.3 - ok
Sony Xperia P 4.1.2 - ok
Sony Xperia Z 4.2.2 - ok
ASUS TF101 4.0.3 - ok
HTC One 4.2.2 - slows down
Samsung Galaxy S4 4.2.2 - slows down

Has anyone encountered such a problem? What can be done?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Divers, 2013-09-26
@Divers

Try to use not SlidingDrawer (which is Deprecated just in API 17), but NavigationDrawer. If it’s not an option for you, then it’s hardly possible to advise anything other than profiling and looking for where it slows down. By the way, if you find what the problem is, please write here. Interesting.

W
WebPlayer, 2013-09-27
@WebPlayer

Together with SlidingDrawer, lists (avatars + nicknames) also slowed down.
1. In AndroidManifest.xml, when the brakes are indicated:

<uses-sdk 
        android:minSdkVersion="14" 
        android:targetSdkVersion="17" />

If the uses-sdk section is removed or set:
<uses-sdk 
        android:minSdkVersion="13" 
        android:targetSdkVersion="13" />

then it stopped slowing down. But then on devices, the application behaved unpredictably.
2. Also, the brakes disappeared when removing large images for the backgroun on lists and backgrouns of large design elements.
I replaced the pictures on the backgrouns with just color. It has become less beautiful, but it does not slow down.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question