android怎么设置无标题,android 设置无标题

Android中全屏无标题设置

方法一:在java代码中实现,

//取消标题

this.requestWindowFeature(Window.FEATURE_NO_TITLE);

//全屏

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

// WindowManager.LayoutParams.FLAG_FULLSCREEN);

方法二:在AndroidManifest.xml中根据需要在或中使用Android系统定义的Android主题方式进行设置,

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

方法三:先在res/values下创建一个styles.xml文件,在文件中写入如下内容,

true

true

然后,在AndroidManifest.xml中根据需要在或中使用自定义的Android主题方式进行设置,

android:theme="@style/theme_fullScreen"