Dialog Box to get user text input on SurfaceView
I am wondering how I can get user input at the end of a game I am programming. Basically, when you lose three lives, I want to stop the game (stop all threads) and then display some sort of dialog box that allows the user to give their name so it can be saved wi开发者_Go百科th the high score. This is all being done in a SurfaceView, however. Does anybody have any good references to something like this? Thank you!!
I think you can simply use FrameLayout and put your SurfaceView there along with other layout which has your text entry forms plus any labels for it...
FrameLayout is capable of stacking several views on top of eachother so that would do what you need I guess.
精彩评论