Switch Between views in FrameLayout
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
精彩评论