I’d like to use the following icon from the android.R folder. Eclipse is saying it’s not public. How can i use this icon.
android:icon="@android:drawable/ic_menu_invite"/>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not every image that ships with the OS is considered part of the Android SDK. You will not find
ic_menu_invitein the SDK listing of what is part of theandroid.R.drawablepackage.However, as Doomsknight points out, you are welcome to copy the images from your SDK installation, or the AOSP, and put them in your project. For menu icons, this can get a bit tricky, in that there are stylistic differences in these icons in different Android versions, so between those and different icons for different densities, you will wind up copying a lot of images.