开发者

how to start a emulator with notitlebar style by default?

I am trying to run an android application in an emulator with no 开发者_如何转开发Titlebar default. How can I do this?


If you'd like to incorporate this into a theme, read this.

From code, read this for the onCreate answer:

//Remove title bar
this.requestWindowFeature(Window.FEATURE_NO_TITLE);


Yes, you can do it with the this.requestWindowsFeature(Window.FEATURE_NO_TITLE); With this you can make your program full-screen-sized:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                                WindowManager.LayoutParams.FLAG_FULLSCREEN);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜