展会信息港展会大全

隐藏状态栏和标题栏,相当于全屏效果
来源:互联网   发布日期:2015-10-02 16:09:13   浏览:1538次  

导读:隐藏标题栏需要使用预定义样式:android:theme=@android:style/Theme.NoTitleBar.隐藏状态栏:android:theme=@android:style/Theme.NoTitleBar.Fullscreen.manifest xmlns:android=http://schemas.android.co......

隐藏标题栏需要使用预定义样式:android:theme= @android:style/Theme.NoTitleBar .

隐藏状态栏:android:theme= @android:style/Theme.NoTitleBar.Fullscreen .

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

android:versioncode="1"

android:versionname="1.0"

package="de.vogella.android.temperature"

>

<application

android:icon="@drawable/icon"

android:label="@string/app_name"

>

<activity

android:label="@string/app_name"

android:name=".Convert"

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

>

<intent-filter>

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</activity>

</application>

<uses-sdk android:minsdkversion="9" />

</manifest>

赞助本站

人工智能实验室

相关热词: 隐藏 状态栏 标题栏 全屏

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港