1. Are you ready for the Galaxy S20? Here is everything we know so far!

App UI operations (setting alpha, setting margins, etc.) very slow on 4.4.4 compared to 4.0.3

Discussion in 'Android Development' started by smuggl3r, Nov 5, 2014.

  1. smuggl3r

    smuggl3r Lurker
    Thread Starter

    I have a seekbar that changes the alpha of an ImageView. This works very smooth on an old HTC Desire 200 with android 4.0.3. I tried to run the same code on a Motorola Moto G 2014 that has android 4.4.4. The Motorola phone is 3 times more powerfull than the HTC, but when I use the seekbar the application stutters.
    The problem is not with the phone, in the Antutu benchmark the Motorola phone got 18000 points, while the HTC got 6000 points.
    This is what the seekbar change event contains:

    float a = progress / 100f;

    The manifest does not contain anything special, just the default manifest that gets created with a new project.
    If in the manifest I disable hardware acceleration then the performance improves somewhat, but there are still little stutters.

    1. Download the Forums for Android™ app!



Share This Page