Android(安卓)studio怎样隐藏标题栏
16lz
2021-12-04
Android studio怎样隐藏标题栏
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xieth.as.imooc_how_old" > <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="人脸识别" android:theme="@style/Theme.AppCompat.NoActionBar" > <activity android:name=".MainActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> intent-filter> activity> application>manifest>
修改这一句
android:theme="@style/Theme.AppCompat.NoActionBar" >
不过这不是最根本的解决方法:
可以这样:
getSupportActionBar().hide();
这样就完美解决了
更多相关文章
- android 隐藏ListView滚动条
- android 设置 源码 修改默认主题为白底黑字
- Android(安卓)轻松实现语音识别的完整代码
- Android(安卓)USB debugging 功能失效
- Android(安卓)VR效果GoogleVR
- 2013.07.22——— android 修改hosts
- android 隐藏ListView滚动条
- 修改不启动Launcher导致开机广播无法发出的bug
- 修改文件夹权限