Android: anyone know the filename for the "settings" icon?

ic_setting_dark as described in Honest Objections's answer seems to be gone (or deprecated). At least I was not able to find it in API 24. However, the method and the containing link are still valid, i.e.:

"@android:drawable/<drawable>" where <drawable> is one of the ids listed here, e.g. ic_menu_preferences (which, unfortunately, is not a gear but a wrench ...)


In the meantime, google released a huge set of material icons at material.io which can be directly used in Android Studio to create svg or png assets as described here. tl;dr:

In the Android view of the Project window, right-click the res folder and select New > Vector Asset.


This is a handy page I found for the built in icons:

http://since2006.com/android/2.1-drawables.php


Just for anyone visiting this in the future, it can be found directly under drawable if you have the SDK, along with many others:

android:src="@drawable/ic_setting_dark"


I believe that ic_menu_preferences.png is what you're looking for. It's in the drawables-?dpi directories, not in drawables.

Tags:

Android