XML : How to fix No resource identifier found for attribute '---' in android

In my app i want to use navigation drawer with swipe tab layout and i am following this tutorial.But i am getting an exception from xml file called error: No resource identifier found for attribute 'itemTextColor' in package 'com.example.samplenavigationdrawer' How to clear it can any one tell me how to deal with it this is my XML:

  <LinearLayout      xmlns:android="http://schemas.android.com/apk/res/android"      xmlns:app="http://schemas.android.com/apk/res-auto"      android:layout_width="match_parent"      android:layout_height="match_parent"      android:fitsSystemWindows="true"      android:orientation="vertical">        <android.support.v7.widget.Toolbar          xmlns:android="http://schemas.android.com/apk/res/android"          android:layout_width="match_parent"          android:layout_height="wrap_content"          android:background="@color/orange"          android:id="@+id/toolbar"          android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"          app:title="Drawer With Swipe Tabs" />        <android.support.v4.widget.DrawerLayout          xmlns:android="http://schemas.android.com/apk/res/android"          xmlns:app="http://schemas.android.com/apk/res-auto"          android:layout_height="match_parent"          android:layout_width="match_parent"          android:id="@+id/drawerLayout"          >            <FrameLayout          android:orientation="vertical"          android:layout_width="match_parent"          android:layout_height="match_parent"          android:id="@+id/containerView">       </FrameLayout>            <android.support.design.widget.NavigationView          xmlns:android="http://schemas.android.com/apk/res/android"          xmlns:app="http://schemas.android.com/apk/res-auto"          android:layout_width="wrap_content"          android:layout_height="match_parent"          android:layout_gravity="start"          android:id="@+id/stuff"          app:itemTextColor="#000000"          app:menu="@menu/drawer_items"          android:layout_marginTop="-24dp"          />            </android.support.v4.widget.DrawerLayout>        </LinearLayout>    

No comments:

Post a Comment