You need to change LinearLayout
to a RelativeLayout
. Make the overlay default as invisible, then use setVisibility(View.VISIBLE)
on the overlay when you want it to show.
How to put an overlay over normal layout
-
13-06-2023 - |
Domanda
I'm doing a mini game just by using a linear layout with buttons and textfields. I want to have an overlay like the highscore overlay in flappy bird:
(the orange box in the middle)
Are there any ways to get this without converting my current layout into a canvas ? Thanks !
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow