开发者

Switch Between views in FrameLayout

开发者 https://www.devze.com 2023-03-04 05:10 出处:网络
How do you swit开发者_如何转开发ch between views in a FrameLayout? For example, I have one SurfaceView in my FrameLayout and I want it to display a DialogBox when the game is over to receive user text

How do you swit开发者_如何转开发ch between views in a FrameLayout? For example, I have one SurfaceView in my FrameLayout and I want it to display a DialogBox when the game is over to receive user text input. I'm assuming that DialogBox will be stored as another view in the FrameLayout, but how do I actually display it? I'll need to call it from my SurfaceView, because when something happens in the SurfaceView, that DialogBox needs to be displayed.


Use bringChildToFront(view) to show any child view above other child views.


See this page for help with Creating Dialogs

0

精彩评论

暂无评论...
验证码 换一张
取 消