资料来源:网络整理
时间:2023/2/14 0:31:37 共计:3630 浏览
Xamarin安卓开发:去掉Activity的头部标题栏及全屏显示
以下是用修改布局文件的方法,其实还有用C#代码的方法。
打开AndroidManifest.xml文件,找到application节点
[html] view
plaincopy
-
<application
-
android:icon="@drawable/ic_launcher"
-
android:label="@string/app_name"
-
android:theme="@style/AppTheme" >
修改为如下代码,即可去头部标题栏
[html] view
plaincopy
-
<application
-
android:allowBackup="true"
-
android:icon="@drawable/ic_launcher"
-
android:label="@string/app_name"
-
android:theme="@android:style/Theme.NoTitleBar" >
修改为如下代码,即可去头部标题栏且全屏显示
[html] view
plaincopy
-
<application
-
android:allowBackup="true"
-
android:icon="@drawable/ic_launcher"
-
android:label="@string/app_name"
-
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

版权说明:
本网站凡注明“广州京杭 原创”的皆为本站原创文章,如需转载请注明出处!
本网转载皆注明出处,遵循行业规范,如发现作品内容版权或其它问题的,请与我们联系处理!
欢迎扫描右侧微信二维码与我们联系。