Dave's Brain

Browse - Programming Tips - Are some stock icons I can use for menu items?

Date: 2017apr5
OS: Android
Language: xml

Q.  Are some stock icons I can use for menu items?

A.  There are a bunch in @android:drawable/ic_menu...
Use code completion in the editor to see the choices.
For example:

<item android:id="@+id/action_settings" android:orderInCategory="100" android:title="@string/action_settings" android:icon="@android:drawable/ic_menu_preferences" app:showAsAction="never" />

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.