I would like to use the built-in icon for Android in my options menu. I am using Android 2.2., Eclipse 3.6.2.
In the XML menu, if I refer to the login image as follows: @android: drawable / ic_menu_login I get the following from Eclipse:
[2011-06-13 10:43:57 - HALASZ Mobil] W/ResourceType( 8380): Bad XML block: no root element node found
[2011-06-13 10:43:57 - HALASZ Mobil] C:\ANDROID\eclipse-SDK-3.6.2-win32\eclipse\Workspace\HALASZ Mobil\res\menu\main_opt_menu.xml:4: error: Error: Resource is not public. (at 'icon' with value '@android:drawable/ic_menu_login').
if I changed the link to another icon in the standard Android.jar file, like this one: @android: drawable / ic_menu_info_details, then everything will be fine.
Can someone please help what I am missing? TIA.
source
share