Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Controlling the spinner

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,

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Controlling the spinner

Hello!

Try using showSpinner() function.

Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Controlling the spinner

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Controlling the spinner

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.

Hawk
Posts: 0
Joined: Mon Aug 04, 2014 11:23 am

Controlling the spinner

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,

Ihor Didevych
Posts: 0
Joined: Wed Nov 19, 2014 7:55 pm

Controlling the spinner

Hawk,

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

Return to “Issues”