• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

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

smuggl3r

Lurker
Nov 5, 2014
1
0
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;
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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones