I'm trying to set the navigationIcon to display a back arrow in the toolbar using Appcompat 21. My themes.xml inside the folder values-v21 looks like this:
<style name="AppTheme" parent="AppTheme.Base" />
<style name="AppTheme.Base" parent="Theme.AppCompat.NoActionBar">
<item name="android:colorPrimary">@color/primary</item>
<item name="android:colorPrimaryDark">@color/primary_dark</item>
<item name="android:dropDownListViewStyle">@style/DropDownListViewStyle</item>
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:navigationIcon">@drawable/abc_ic_ab_back_holo_light</item>
<item name="android:navigationContentDescription">@string/navigation_content_description</item>
To which I receive the error:
error: Error: No resource found that matches the given name
(at 'android:navigationIcon' with value '@drawable/abc_ic_ab_back_holo_light').
However if I ctrl-B (goto declaration) on the drawable it shows it located within the Appcompat library. Do I need to copy the drawable from the Appcompat into my local R drawable folder in order to use it or is there some way of getting Android Studio to understand that it should take it from there when it compiles?