Despite attempting all the examples provided in the documentation, I found that the classes option was not having any effect. As a result, I resorted to making changes programmatically using JavaScript. You can view my demo here: https://jsfiddle.net/yusrilmaulidanraji/u1q4xjnt/6/
Here is the code snippet:
<button id="hideLoading"></button>
CSS:
.abv-loading-text{
width: 100%;
text-align: center;
}
.ui-loader-custom {
display: block;
width: 100%;
left: 0;
margin: 0 auto;
}
JavaScript:
var loadingUI =
"<label class='abv-loading-text'>Wait on this screen until the process is complete.</label>" +
"<span class='ui-icon-loading'></span>" +
"<h1></h1>";
$.mobile.loading("show", {
html: loadingUI,
textVisible: true
});
$(".ui-loader").addClass('ui-loader-custom');
$("#hideLoading").on("click", function () {
$(".ui-loader").removeClass('ui-loader-custom');
$.mobile.loading("hide");
});