`

This Activity already has an action bar supplied by the window decor.

 
阅读更多

        在给一个布局添加toolbar的时候出现一个错误

This Activity already has an action bar supplied by the window decor.

        这样在preview里面的确可以看出有2个actionBar



 

        于是只需要在声明这个Activity的时候说明一下NoActionBar就可以啦,具体操作是在AndroidManifest.xml中添加一行代码

 <activity android:name=".view.activity.TypeActivity"
            android:theme="@style/AppTheme.NoActionBar" ></activity>

 

  • 大小: 21 KB
分享到:
评论

相关推荐

    Android设置theme中可能遇到的坑

    This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR 原因一 错误写法: &lt;style name=AppTheme.NoActionBar&gt; ...

    iso-iec 14496-10(3rd_2006-03-01)_MPEG4_AVC_H264.pdf

    0.6 Overview of the design characteristics ............................................................................................................... xv 0.6.1 Predictive coding .....................

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    on a curve by the distance from the original point on the perimeter. - ADD: Added the method TCustomProp.GetPublishedComplexProp - returns included complex flex-property by name registered through ...

    数位板压力测试

    This specification is intended to be an open standard, and as such the text and information contained herein may be freely used, copied, or distributed without compensation or licensing restrictions. ...

    数据结构作业Hash表

    This function already contains code that reads a file line by line. It also extracts each word from a line using an instance of class stringstream. Your task is to check the spelling of each word. ...

    BS ISO 20417-2021 Information to be supplied by the manufacturer

    BS ISO 20417-2021 Medical devices — Information to be supplied by the manufacturer.pdf

    C语言实验作业

    1. Write a program that reads ten numbers supplied by the user into a single subscripted array, and then prints out the average of them. 2. Write a program that reads ten numbers supplied by the ...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 ...telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss ... 各个 shell 可互相切换 ksh:$ sh:$ csh:guangzhou% bash:bash-3.00$ ... 命令和参数之间必需用空格隔...

    hash table spell checking

    This function already contains code that reads a file line by line. It also extracts each word from a line using an instance of class stringstream. Your task is to check the spelling of each word. ...

    SANYO烧录器软件FWS_V136

    into and from flash-ROM chips for the one-chip microcontrollers incorporating flash ROM supplied by SANYO Semiconductor Company. SanyoFWS has the following features: (1) Capable of connecting to a ...

    servlet2.4doc

    Returns a boolean indicating whether the named response header has already been set. contextDestroyed(ServletContextEvent) - Method in interface javax.servlet.ServletContextListener Notification ...

    Senfore_DragDrop_v4.1

    This is believed to be a bug in the Windows clipboard and a work around hasn't been found yet. * Asynchronous targets appears to be broken in the current release. * When TDropFileTarget....

    hibernate-shards.jar

    application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements ...

    Advanced Programming in the UNIX Environment

    Here is an updated version of the Linux source code, supplied by a reader, that supposedly works under RedHat 5.0 and 5.1. Here is an another version of the Linux source code, supplied by a reader, ...

    Area Based ADPAdministrator Guide

    Description of the Supplied ABA Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3:12 Process Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    Universal-USB-Installer

    安装linux工具源码 (UUI) Universal USB ...This Open Source tool falls under the GNU General Public License Version 2 Source Code is made available at time of download, from the official UUI page: ...

    Introduction.To.Algorithms,.Second.Edition

    We have supplied an extensive bibliography and pointers to the current literature. Each chapter ends with a set of "chapter notes" that give historical details and references. The chapter notes do not...

    B04_2841_EX08.zip_2841_Number Ten

    1. Write a program that reads ten numbers supplied by the user into a single subscripted array, and then prints out the average of them. 2. Write a program that reads ten numbers supplied by the ...

    i-vector的工具箱

    The binaries supplied with this version of the toolkit need version 8.1 (R2013a) of the MCR. The MCR installer is easy to use and provides users with an installation wizard. Assuming that the MCR is ...

    WizFlow网页编辑

    application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements ...

Global site tag (gtag.js) - Google Analytics