Android Question BringToFront problem

yaniv hanya

Active Member
Licensed User
Screenshot_2019-08-12-18-23-36.jpg


the screenshot shows a panel created like this:

B4X:
BigImgsViewerPnl.Initialize("BigImgsViewerPnl")
    BigImgsViewerPnl.LoadLayout("ImgsViewLy")
    BigImgsViewerPnl.Visible=False
    BigImgsViewerPnl.Enabled=False
    Activity.AddView(BigImgsViewerPnl,0,0,100%x,100%y)
by a button click it become visiable with this code

B4X:
BigImgsViewerPnl.Visible=True
    BigImgsViewerPnl.Enabled=True
    BigImgsViewerPnl.BringToFront
And although he is set for the transparency 255, the buttons behind him (marked with red circles ) appear above it.
Do you have any idea why?
Attached is an example of the code that I use to just click the click me button and the problematic panel appears
 

Attachments

yaniv hanya

Active Member
Licensed User
Wow.
So simple and works wonderful.
I broke my head on it hours yesterday.
Thank you very much
 

emexes

Well-Known Member
Licensed User
What I found even more Wow is the parallax effect. Don't know if it works on every device, but when it does, the items that are in front move relative to the background when you tilt the phone. Or perhaps the background moves. Whichever it was, freaked me out first time I saw it. In a good way.

:)
 
Top