내 애플리케이션에 활동 표시기를 표시하려고합니다. 활동 표시기에 activity.js
을 사용하고 있습니다. 브라우저와 아이폰에서 잘 작동하고 있지만 안드로이드 기기에서는 작동하지 않습니다.jQuery 모바일 활동 표시기가 안드로이드에 표시되지 않음
나는 왜 표시기가 안드로이드 장치에서 작동하지 않는지 알지 못합니다. 여기
는 활동 표시 내 샘플 코드입니다 :이 ..이 도움이 될 수 Android..try의 기본 활동 표시를 보여주기 위해 다음 코드를 사용했다function showIndicator() {
console.log("inside show indicator");
applyOverLay();
var showIndicator = document.createElement("div");
showIndicator.setAttribute("class", "activity-indicator");
document.body.appendChild(showIndicator);
$('.activity-indicator').activity({
width: 5,
space: 1,
length: 3,
color: '#fff'
});
}
function applyOverLay() {
var overlay = document.createElement("div");
overlay.setAttribute("id", "overlayAttr");
overlay.setAttribute("class", "overlay");
document.body.appendChild(overlay);
}
function hideindicator() {
$('.activity-indicator').activity(false);
setTimeout(function() { $(".activity-indicator").empty().remove(); }, 0);
setTimeout(function() { $(".overlay").empty().remove(); }, 0);
}
function loadhtmlpage() {
//location.href='#refillReminder';
$.mobile.changePage("#refillReminder");
showIndicator();
hideindicator();
}
style.css:
.activity-indicator {
padding: 10px;
position: absolute;
top: 50%;
left: 45%;
z-index: 1001;
}
그것은 도움이 될 것이다 :
http://jsbin.com/oPIyuqUk/1/edit?html,css,js,output
또는 여기 JQuery와에게 모바일 로더를 시도 : 활동 로더를 들어 다음과 같은 것을 시도 jQueryMobile) 및 브라우저 또는 웹보기가있는 컴파일 된 응용 프로그램에서이 동작을 볼 수 있는지 여부를 지정합니다. –