I want to implement recycler view layout, but I am getting error "render problem". I tried to add include, but the error still exists. How can I solve the problem ?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:background="@color/viewBg"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.waadalkatheri.popularmovies.MainActivity"
tools:showIn="@layout/activity_main"
android:layout_marginTop="@dimen/activity_vertical_margin">
<include layout="@layout/activity_main"/>
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clipToPadding="false"
android:scrollbars="vertical" />
</RelativeLayout>
the error: I
nformation:Gradle tasks [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies, :app:compileDebugSources, :app:compileDebugAndroidTestSources, :app:compileDebugUnitTestSources]
/Users/mac/AndroidStudioProjects/popularMovies/app/src/main/res/layout/content_main.xml
Error:(2) No resource identifier found for attribute 'layout_behavior' in package 'com.example.waadalkatheri.popularmovies'
Error:(8, 26) No resource found that matches the given name (at 'layout_behavior' with value '@string/appbar_scrolling_view_behavior').
/Users/mac/AndroidStudioProjects/popularMovies/app/build/intermediates/res/merged/debug/layout/content_main.xml
Error:(2) No resource identifier found for attribute 'layout_behavior' in package 'com.example.waadalkatheri.popularmovies'
Error:(8, 26) No resource found that matches the given name (at 'layout_behavior' with value '@string/appbar_scrolling_view_behavior').
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt