安卓去除标题的方法

第1种:在AndroidManifest.xml文件中定义android

<application android:icon="@drawable/icon"  android:label="@string/app_name" android:theme="@android :style/Theme.NoTitleBar">app

能够看出,这样写的话,整个应用都会去掉标题栏,若是只想去掉某一个Activity的标题栏的话,能够把这个属性加到activity标签里面spa

第2种:这种在通常的应用中不经常使用,就是在res/values目录下面的style.xml的文件中在第二个例如:.net

<resources>xml

    <!-- Application theme. -->get

    <style name="AppTheme" parent="AppBaseTheme">string

        <item name="android:windowNoTitle">true</item>it

    </style>io

</resources>class


加上这个有背影的文字后就没有了系统的标题

相关文章
相关标签/搜索