不用设置layout的theme,直接在代码中加入下面这2行代码即可
注意代码的位置,要写在加载layout之前(setContentView(R.layout.show_image))
requestWindowFeature(Window.FEATURE_NO_TITLE)
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
不用设置layout的theme,直接在代码中加入下面这2行代码即可
注意代码的位置,要写在加载layout之前(setContentView(R.layout.show_image))
requestWindowFeature(Window.FEATURE_NO_TITLE)
window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)
本文标题:Android Studio kotlin Activity设置
本文链接:https://www.haomeiwen.com/subject/fniijctx.html
网友评论