Vijay Samuel's Blog

Removing flickering seen in cordova applications

Posted on: January 12, 2015

More insights on my ventures in to app development using Drupalgap. I had received a lot of complaints from users that there is considerable flickering in the mobile app that I had built. The flickering wasn’t very much visible in Kit Kat devices but as I went down API levels it was very much visible. The solve was a two part problem:

1) Drupalgap uses the ‘Fade’ transition to move from one page to another. By changing the transition from fade to ‘Slide’ the transitions became much smoother than it was earlier. Sample code on how to change the transition can be seen here.

2) ICS and lower versions of Android seem to have the flickering issue even after the transitions change was implemented. That got fixed when I disabled hardware acceleration. To disable it just goto the AndroidManifest.xml and change the values of hardwareAcceleration to false.

This did the trick. Hope this helps!

Cheers!! 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

My Timeline

January 2015
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  

I, Me and Myself

My Blog Stats

  • 6,358 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 4 other followers

%d bloggers like this: