“You need to use a Theme.Appcompat theme…” when testing ActionBarActivity, but I am

拜拜、爱过 提交于 2019-12-02 18:47:51
Toppers

add android:theme="@style/Theme.AppCompat" under application in your manifest.xml

There are 2 things I'd try:

  • Remove the setTheme from onCreate, it is redundant with the manifest and may lead to confusion
  • Set the theme at Application instead of Activity level in the manifest
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!