开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜