美文网首页
2019-01-07

2019-01-07

作者: 江北辰爱小璇子 | 来源:发表于2019-01-07 15:58 被阅读0次

安卓自带的一些样式


android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式 android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏 android:theme="Theme.Light" 背景为白色 android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏 android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏 android:theme="Theme.Black" 背景黑色 android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏 android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏 android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景 android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏 android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏 android:theme="Translucent" 透明背景android:theme="Theme.Translucent.NoTitleBar" 透明背景并无标题android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 透明背景并无标题,全屏android:theme="Theme.Panel" 面板风格显示android:theme="Theme.Light.Panel" 平板风格显示

在xml文件中进行配置

在项目的清单文件AndroidManifest.xml中,找到需要全屏或设置成无标题栏的Activity,在该Activity进行如下配置即可。

相关文章

网友评论

      本文标题:2019-01-07

      本文链接:https://www.haomeiwen.com/subject/djiurqtx.html