The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
来源:互联网 发布:appstore下载不了软件 编辑:程序博客网 时间:2024/06/05 06:51
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">解决办法,有两种:一个是在styles.xml中修改parent;二是在界面xml中去增加toolbar.</span>
出现这个问题是原因是, 在使用默认创建的activity时,用了'com.android.support:appcompat-v7:23.1.1',没有在界面xml中去使用toolbar,于是弹出这个警告,告诉你接下来可以去使用actionbar。
那么接下来解决它,第一种,使用actionbar:
1.打开styles.xml。
2.修改parent属性,
parent="Base.Theme.AppCompat.Light.DarkActionBar"
二是在界面xml中去增加toolbar:<android.support.design.widget.AppBarLayout android:id="@+id/app_bar" android:layout_width="match_parent" android:layout_height="@dimen/app_bar_height" android:fitsSystemWindows="true" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.design.widget.CollapsingToolbarLayout android:id="@+id/toolbar_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" app:popupTheme="@style/AppTheme.PopupOverlay" /> </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout>
0 0
- The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.app.WindowDecorActionBar (Fi
- [已解决]The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
- 解决The following classes could not be foundandroid.support.v7.internal.app.WindowDecorActionBar
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- The following classes could not be found: - android.support.v7.internal.widget.ActionBarOverlayLayou
- the following classes could not be found android.support.v7.internal.
- The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverl
- 关于解决android studio的"rendering problems The following classes could not be found android.support.v7
- The following classes could not be instantiated: android.support.v7.widget.ActionBarOverLayLayout
- The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决方法
- The following classes could not be instantiated: - android.support.v7.widget.Toolbar 解决办法
- classes could not be found: - android.support.v7.i
- The following classes could not be instantiated: android.support.v7.widget.RecyclerView v7中找不到的终极方法
- android.support.v7.internal.app.WindowDecorActionBar
- 现场编程比赛普及组决赛题解
- windows下安装pillow,numpy和matplotlib
- 最小生成树(Kruskal)
- Ruby 'require' error: cannot load such file
- 税率计算
- The following classes could not be found: android.support.v7.internal.app.WindowDecorActionBar
- OCP 052 卷2 40-60
- Http协议下的浏览器与服务器的交互
- 99乘法表
- 1099. Build A Binary Search Tree (30)
- Length of Last Word
- UINavigationController
- springMVC指定跳转viewName跳转404找不到页面
- 来往