开发者

Dialog Box to get user text input on SurfaceView

开发者 https://www.devze.com 2023-03-03 09:52 出处:网络
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

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.

0

精彩评论

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

关注公众号