createActionMenuIcon

open fun createActionMenuIcon(@NonNull context: Context, @DrawableRes drawableResId: Int): Drawable

Gets icon from drawable resource styled properly so it can be used in action menu.

Parameters

context

The context to retrieve resource from.

drawableResId

Drawable resource representing menu icon.