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

smuggl3r

New member
Nov 5, 2014
1
0
0
Visit site
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:
Code:
float a = progress / 100f;
imgRight.setAlpha(a);
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.