Android 使用XML隐藏ActionBar中遇错的解决的方法

今天我在使用Menifest.xml让程序隐藏标题栏是一直出错。主要内容是:

You need to use a theme.AppCompat theme(descendant) with this activity.

一直百思不得其解,后询问以大神之后最终得到了解决的方法,就是在style.xml中使用的style中增加一下item:

<item name="android:windowNoTitle">true</item>
就能够解决这个问题了。

大神的blog在这,

http://blog.csdn.net/guolin_blog

大家假设有问题了也能够去看看他的博客。向他请教什么的大笑

原文地址:https://www.cnblogs.com/yjbjingcha/p/7072827.html