Any way to resize or change alpha of native.setActivityIndicator?

Is there a way to change properties of the native.setActivityIndicator such as size, alpha, color, etc?

Not that I’m aware of.

Rob

Thank you!

The native one can’t be configured, but there is always the spinner widget:  

http://docs.coronalabs.com/api/library/widget/newSpinner.html

Or you could just make your own object which spins/pulses/whatever when visible.

Thanks very much corona1634!

Not that I’m aware of.

Rob

Thank you!

The native one can’t be configured, but there is always the spinner widget:  

http://docs.coronalabs.com/api/library/widget/newSpinner.html

Or you could just make your own object which spins/pulses/whatever when visible.

Thanks very much corona1634!

The native.setActivityIndicator seems to set the orientation/size of the spinner+background the first time it is called, but not on subsequent calls. When I change the orientation of the device, the spinner is no longer centered and the background does not cover the entire display. This does not occur on the corona simulator (i.e., it works fine there), but it acts this way on the iOS simulator and on the real iPad device.

I was hoping that the indicator would take care of resizing itself. But since it doesn’t, I figured that adding the code below to my resize event would fix the problem by stopping and restarting the indicator. But surprisingly it doesn’t. I figure the screen dimensions must be cached in a native activityIndicator object somewhere.

local originalActivityIndicator = native.setActivityIndicator native.setActivityIndicatorRaw = originalActivityIndicator native.setActivityIndicator = function(state) native.setActivityIndicatorRaw(state) native.\_activityState = state end local function onResize(event) -- Fix native activity indicator, if it's active if native.\_activityState then -- Reset the state to fix sizing native.setActivityIndicator(false) timer.performWithDelay(1000,function() native.setActivityIndicator(true) end) end end

The same issue shows up for screen transitions, which I fix by manipulating fields such as storyboard.effectList.slideRight.to.xStart (there was a post about this somewhere in the forums). Is there a way to update these cached values in the native activity indicator as well? Or am I missing something?

I should mention: this is for build Version 2014.2483 (2014.10.31)

I would try and grab the latest daily build and or 2393a and see if it’s present in those versions.  What happens when you try to build the sample app that has the native.activityIndicator in it?

Rob

There is a bug report on this: Case 37109

I forgot to update the post, but I did try it with 2014.2502 (2014.11.12), and the problem looks the same.

I filed a bug report yesterday after posting, so maybe that report is mine. Is there a way to view existing bug reports? I couldn’t find that anywhere.

I’ll try the sample app.

You can’t view other people’s bug reports.  

Rob

I filed it as 37085.

I tried the sample code, still with build 2014.2502. Same problem.

Thanks for the report. This will be fixed in the next daily build (2507 or after)

Great, thanks for the rapid response on this! 

Luckily Apple didn’t notice, and we got into the app store anyway, but obviously it would be nice to fix this from the user’s perspective.

The native.setActivityIndicator seems to set the orientation/size of the spinner+background the first time it is called, but not on subsequent calls. When I change the orientation of the device, the spinner is no longer centered and the background does not cover the entire display. This does not occur on the corona simulator (i.e., it works fine there), but it acts this way on the iOS simulator and on the real iPad device.

I was hoping that the indicator would take care of resizing itself. But since it doesn’t, I figured that adding the code below to my resize event would fix the problem by stopping and restarting the indicator. But surprisingly it doesn’t. I figure the screen dimensions must be cached in a native activityIndicator object somewhere.

local originalActivityIndicator = native.setActivityIndicator native.setActivityIndicatorRaw = originalActivityIndicator native.setActivityIndicator = function(state) native.setActivityIndicatorRaw(state) native.\_activityState = state end local function onResize(event) -- Fix native activity indicator, if it's active if native.\_activityState then -- Reset the state to fix sizing native.setActivityIndicator(false) timer.performWithDelay(1000,function() native.setActivityIndicator(true) end) end end

The same issue shows up for screen transitions, which I fix by manipulating fields such as storyboard.effectList.slideRight.to.xStart (there was a post about this somewhere in the forums). Is there a way to update these cached values in the native activity indicator as well? Or am I missing something?

I should mention: this is for build Version 2014.2483 (2014.10.31)

I would try and grab the latest daily build and or 2393a and see if it’s present in those versions.  What happens when you try to build the sample app that has the native.activityIndicator in it?

Rob

There is a bug report on this: Case 37109