Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Problem with shadows module
Started by maximo97 Jul 17 2019 06:19 AM

4 replies to this topic
shadows navigation bar
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

maximo97

[GLOBAL: userInfoPane.html]
maximo97
  • Contributor

  • 227 posts
  • Corona SDK

Hi guys,

 

I'm using the shadow module. I'm finding problems if I remove the "navigation bar" in android devices.

The code I use to remove the bar is this (in main):

if( platform == "Android" ) then
	local function onResize( event )
        if (system.getInfo("androidApiLevel") >= 19) then
            native.setProperty("androidSystemUiVisibility", "immersiveSticky")
        else
            native.setProperty("androidSystemUiVisibility", "lowProfile")
        end
	end
	onResize()
	Runtime:addEventListener( "resize", onResize )
end

When I create a version and test it on an android device with the bar all the shadows are out of phase.

How can I solve this?



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,925 posts
  • Enterprise

What is the "shadows" module?

 

Rob



[TOPIC: post.html]
#3

maximo97

[GLOBAL: userInfoPane.html]
maximo97
  • Contributor

  • 227 posts
  • Corona SDK

Sorry if I was unclear:

 

https://www.youtube.com/watch?v=PKp-7V2ENGA

https://coronalabs.com/blog/coronageek/corona-geek-122/



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,925 posts
  • Enterprise

I don't know if the module creator is still active with Corona (this module was from 5 years ago). But you could try reaching out to him. This likely pre-dated Android's ability to hide tool bars.

 

It's also likely a source module, which means you can look at the code yourself and see if you can identify the cause. This was a community created module so it's no something we can provide support for.

 

Rob



[TOPIC: post.html]
#5

maximo97

[GLOBAL: userInfoPane.html]
maximo97
  • Contributor

  • 227 posts
  • Corona SDK

I am looking for the whole day and I can't find the problem...

 

You wouldn't even be able to advise me on what changes global  variables could bring and remove the bar?




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: shadows, navigation bar