While designing my first app, I set a panel (pnlBasis) covering whole Activitiy Main in Layout "LyBasis". The panel has a gradienddrawable. Looks ok.
I would like this layout put as basis for all my activities for make them look uniform.
In this pnlBasis I want to load activity-specific panels with the necessary views. So I designed another layout ("LyPnlMain") with again a panel (pnlMain) with its color set to #00000000. (If alpha-channel is 0 I assume transparency - is that wrong?) (All Panels B4XView)
But I fail:
When I load LyPnlMain in PnlBasis, the whole screen turns to dark grey. The Views on PnlMain are ok, but my background is gone.
What am I doing wrong?
I would like this layout put as basis for all my activities for make them look uniform.
In this pnlBasis I want to load activity-specific panels with the necessary views. So I designed another layout ("LyPnlMain") with again a panel (pnlMain) with its color set to #00000000. (If alpha-channel is 0 I assume transparency - is that wrong?) (All Panels B4XView)
But I fail:
B4X:
Activity.LoadLayout("LyBasis")
PnlBasis.LoadLayout("LyPnlMain")
What am I doing wrong?