I had this issues as well when i was working on my blog app which am yet to host. though i was using RecyclerView, CardView etc.

SOLUTION:
You should add this to your dependency
compile 'com.android.support:appcompat-v7:23.+'compile 'com.android.support:cardview-v7:23.+'compile 'com.android.support:recyclerview-v7:23.+'compile 'com.android.support:design:23.1.1'
though what we need for the problem is the last one ,
This is my Layout file .xml
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="16dp" android:paddingLeft="16dp" android:paddingTop="16dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:context="com.ezepueud.rssreader.MainActivity" tools:showIn="@layout/activity.main.xml" >
<android.support.v7.widget.RecyclerView android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/recyclerView" >
</android.support.v7.widget.RecyclerView>
</RelativeLayout>
THIS IS MY STRING RESOURCES FILE
<resources>
<string name="app_name">RssReader</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="appbar_scrolling_view_behavior">android.support.design.widget.AppBarLayout$ScrollingViewBehavior</string>
</resources>
SHARE THIS POST
0 comments:
Post a Comment