I know how to use @drawable
but how do I set @android:drawable/ic_image
in code?
in XML, it would be
android:icon="@drawable/my_image"
or
android:icon="@mipmap/my_image"
and for android:drawable, it would be:
android:icon="@android:drawable/ic_menu_delete"
but how to do the latest in code to set an image?
And which should I use?