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();

这样就完美解决了


更多相关文章

  1. android 隐藏ListView滚动条
  2. android 设置 源码 修改默认主题为白底黑字
  3. Android(安卓)轻松实现语音识别的完整代码
  4. Android(安卓)USB debugging 功能失效
  5. Android(安卓)VR效果GoogleVR
  6. 2013.07.22——— android 修改hosts
  7. android 隐藏ListView滚动条
  8. 修改不启动Launcher导致开机广播无法发出的bug
  9. 修改文件夹权限

随机推荐

  1. go引入外部依赖的三种方式介绍
  2. golang怎么debug
  3. 安装go第三方库的方法
  4. go语言之goroute协程
  5. golang写爬虫乱码怎么办
  6. Go接口interface的用法介绍
  7. Go语言执行流程详解
  8. golang能写操作系统吗
  9. golang如何判断字符串是否为空
  10. golang如何判断目录是否存在