Can't access android/drawable Icon-Resource
18,454
try :
android:icon="@android:drawable/ic_menu_view"
instead of :
android:icon="@drawable/ic_menu_view"
Author by
safari
Welcome on my Profile I'm 20 years old, probably not a bad Android programmer and now just started with IOS.
Updated on June 17, 2022Comments
-
safari almost 2 years
I'm creating a Optionsmenu, for that I use the Android Icon-Resource. But I can't access them, what am I doing wrong. What do I need to change?
Here's the Code of my menu.xml
<?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/Videos" android:icon="@android/drawable/ic_menu_view" android:title="Videos" /> <item android:id="@+id/Bio" android:icon="@android/drawable/ic_menu_friendlist" android:title="Biographie" /> <item android:id="@+id/Support" android:icon="@android/drawable/ic_menu_star" android:title="Support" /> </menu>
thank you for the help in advance!