How-to


Eliminating flickering on Android when navigating between pages

If you run your app on Android and experience flickering when navigating between pages, add the following JavaScript. Select Create New > JavaScript. Give the file any name. 

$.mobile.defaultPageTransition = 'none';
$.mobile.defaultDialogTransition = 'none';

Above will invoked for all devices Android, and iOS. iOS devices usually don't experience such flickering so you can use this code that would only be run on Android: 

if (navigator.userAgent.indexOf("Android") != -1) {
   $.mobile.defaultPageTransition = 'none';
   $.mobile.defaultDialogTransition = 'none';
}

Center components (for device rotation)

Comments