문제

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:

enter image description here

(the orange box in the middle)

Are there any ways to get this without converting my current layout into a canvas ? Thanks !

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top