Using AppCompat 'layout_behavior' with '@string/appbar_scrolling_view_behavior' throws exception
来源:互联网 发布:python 将字符串split 编辑:程序博客网 时间:2024/05/16 17:47
layout_behavior属性报错
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:showIn="@layout/activity_index" tools:context="com.news.ui.activty.IndexActivity"></RelativeLayout>
解决方案
strings.xml 添加如下:<string name="appbar_scrolling_view_behavior">android.support.design.widget.AppBarLayout$ScrollingViewBehavior</string>
0 0
- Using AppCompat 'layout_behavior' with '@string/appbar_scrolling_view_behavior' throws exception
- public String selectCoursePre() throws Exception
- public String intercept(ActionInvocation invocation) throws Exception {
- Up navigation with fragments using AppCompat
- Java exception and throws
- contextloaderlistener throws exception
- JNI throws java exception
- java throws exception
- throws Exception异常是怎么回事
- 方法名+ throws Exception
- throws Exception的意思
- try catch throws Exception
- 理解throws Exception
- JVM(3) Exception and Throws
- What happend: Exception throws in the .ctor()?
- JAVA 异常 throwable exception error throws throw
- JAVA 异常throwable exception error throws throw
- JAVA 异常 throwable exception error throws throw
- Java工程师成神之路~
- Java中apache下面FTPClient主动模式和被动模式
- JPQL的命名查询@NamedQuery
- uva1121 方法一删去前端 方法二 二分
- SqlServer执行计划
- Using AppCompat 'layout_behavior' with '@string/appbar_scrolling_view_behavior' throws exception
- 科技论文中图片的处理方法
- PAT乙级 旧键盘打字(20)
- centos7 mininal安装,需要自己安装jdk1.8,步骤
- 安卓开发学习之020 自定义视图的用户交互事件
- 今天,我赚了
- 基于zookeeper+leveldb搭建activemq集群
- Centos6.5搭建java开发环境
- android初学之Android异常之 Warning: Activity not started, its current task has been brought to the front