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

来源:互联网 发布:火炮兰灵族捏脸数据 编辑:程序博客网 时间:2024/04/26 17:26



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

Android studio设置

方式一(推荐)

修改文件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);//去掉默认的标题头


0 0
原创粉丝点击