您的位置:首页 > 移动开发 > Android开发

怎么样将android studio或者xamarin studio默认界面的标题栏去掉,便于html5打包apk,为了美观

2015-11-07 22:23 351 查看







=======================如何去掉默认的标题栏=================

[b]Android studio设置
[/b]

方式一(推荐)

修改文件styles.xml配置,改为如下配置:

设置为NoActionBar

<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
</style>
</resources>

方式二:

AndroidManifest.xml的节点theme节点为NoActionBar

 <application

        android:allowBackup="true"

        android:icon="@mipmap/ic_launcher"

        android:label="@string/app_name"

        android:theme="@style/Theme.AppCompat.NoActionBar"

        >

xamarin studio里面MainActivity.cs中,写在SetContentView (webView);前面加一行代码:

base.RequestWindowFeature(WindowFeatures.NoTitle);//去掉默认的标题头
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: