Page 1 of 1

Controlling the spinner

Posted: Wed Feb 04, 2015 9:29 am
by Hawk

Hi,

In my App, in the first page, there are around 10 services called to fetch data for the user. This takes relatively long time. The loading icon (spinner) shows only for 1 or 2 seconds and disappear, which makes the user thinks s/he can move forward before completing data load.
I tried to call codeshowSpinner();/code several times to make it show longer, but it did not work. It does not show at all.

I need to show the spinner longer time, if possible until all services are (complete), or at least I set a fixed time (e.g. 5 seconds).

Is that possible? If not, what options do I have in this case?

Many thanks,


Controlling the spinner

Posted: Wed Feb 04, 2015 11:26 am
by Maryna Brodina

Hello!

Try using showSpinner() function.


Controlling the spinner

Posted: Wed Feb 04, 2015 11:34 am
by Hawk

Hi Maryna, I mentioned I tried using it. It did not work. It did not show any spinner


Controlling the spinner

Posted: Wed Feb 04, 2015 2:38 pm
by Alena Prykhodko

Hello,

You can remove the default spinner and use your's
preshowSpinner = null;
MyshowSpinner = function() {
/// your spinner animation here
}/pre

Only one minor inconvenience here - you need to launch your spinner each time programmatically before launching the service and hide it on complete.


Controlling the spinner

Posted: Thu Feb 05, 2015 2:32 am
by Hawk

Hi Alena,

How to use the same spinner or same animation that is used by the Android?

Do I need to do that for all pages (launching programmatically), or only the page that I would like to change the spinner display time for?

Many thank,


Controlling the spinner

Posted: Thu Feb 05, 2015 4:44 pm
by Ihor Didevych

Hawk,

Do I need to do that for all pages (launching programmatically) ...?
Yes