`
yangwei0915
  • 浏览: 465369 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

android的小问题:You need to use a Theme.AppCompat theme

 
阅读更多

android的一个小问题:

 

Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

 

当在AndroidManifest.xml文件的application的节点设置了属性:

android:theme="@android:style/Theme.NoTitleBar

而Activity继承了ActionBarActivity就回出现上述错误,解决的办法就是让Activity去继承Activity而不是ActionBarActivity

分享到:
评论

相关推荐

    Android设置theme中可能遇到的坑

    发现坑 最近在配置项目主题的时候报了如下错误: This Activity already has an...style name=AppTheme.NoActionBar> <item name=android:windowActionBar>false <item name=android:windowNoTitle>true <ite

    jQwidgets 3.6.0

    In general you need to use files from this directory only. Files list & description: Files required in all projects using the SDK jqxcore.js: Core jQWidgets framework Stylesheet files. Include at ...

    android如何设置Activity背景色为透明色

    * 如果继承自 AppCompatActivity,将会报错,例如:java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity。 解决方法是将 Activity 继承自 Activity,...

    可以滑动页面的项目

    <style name="ActivityTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:windowIsTranslucent">true If the device is greater than the version of android L, you can use the ...

    Preproduction.Blueprint.How.to.Plan.Game.Environments.and.Level.Designs.2nd.Ed

    All you need is a solid plan of what your environment is going to look and play like prior to creating it. "Preproduction Blueprint" is the planning system and workbook. These are the same steps I ...

    Digging into WordPress.pdf

    2.4.6 You Don’t Need to Use Them At All ...............................................34 2.4.7 Custom Taxonomies ..................................................................34 2.5.1 Users and ...

    Ionic.2.Cookbook.2nd.Edition.epub

    You'll work with Cordova to support native functionalities on both iOS and Android. From there, you'll get to grips with using the default themes for each platform as well as customizing your own. ...

    BCGControlBarPro.v12.00

    Usually, you'll need to call the following class methods to create your backstage view: AddCommand: add a single command button such as "Save", "Save As" or "Exit". AddView: add a button with ...

    gtk-engines-

    If you need to install this package in a different prefix from GTK+, then you'll have to set your GTK_PATH environment variable to point to the installed prefix. For instance, if this package was ...

    详解Android冷启动实现APP秒开的方法

    在采用透明主题时,可能会遇到不兼容的问题,如"java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity."。这通常是因为Activity继承自AppCompatActivity...

    drupal 6.12

    uploads, you may need to use the following command from a shell or system prompt (while in the installation directory): chmod o+w uploads * Access the file system path settings in Drupal by ...

    Extending Bootstrap PDF

    Chapter 2, Applying a Custom Theme, shows you how to create your first Bootstrap project and apply a Bootswatch theme to it. Chapter 3, Creating Your Own Build, uses the customize tool from the ...

    flash标签云 3D效果 PHP插件 by weefselkweekje

    There's a text field in the root of the movie that you can use to embed more characters. If you change to another font, you'll need to edit the Tag class as well. More info [here]...

    Drupal.8.for.Absolute.Beginners.1430264667

    You will then use Drush to apply a theme to Drupal, customizing everything to your liking, before publishing your work to the world. The book also covers some more advanced topics that beginners ...

    odoo themes

    ### Odoo Themes: A Comprehensive Guide to Creating Custom Themes for Odoo 9.0 #### Introduction to Odoo Themes In the vibrant world of content management systems (CMS), Odoo stands out as a powerful...

    英文版 web album maker 2.2

    Web Album Maker is a web photo album generator that creates online photo slideshow from your digital photos using unique and highly professional Flash or HTML theme templates. When you are finished, ...

    helix3_template_j3_v2.5.6.zip

    Perfect to use as-is or as a blank, genesis, starter theme for development. It is designed so that you can work fast, using current technologies and work-flows, without being bogged down by the ...

    Android代码-MultipleTheme

    This framework of Android app support multiple theme(such as day/night mode) and needn’t finish current application or current activity. 第一步:在项目的attr.xml声明自定义属性(各种模式都会用到的...

    Windows MicroXP 0.82[Microsoft Windows XP SP3原版加工成的微型XP系统,=99.9%个完整XP]

    There you can double click the service you need to use and even a novice user can now read the service descriptions and decide what to enable and what to keep disabled. For example if you have a Dial...

Global site tag (gtag.js) - Google Analytics