开发者

how to start a emulator with notitlebar style by default?

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

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

精彩评论

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

关注公众号