I was wondering if there's any way to assign the default android theme on a context menu. I have a custom theme applied to my whole application in the android manifest,and I don't want to apply it individually to each activity.
I've been able to achieve this in a Toast
with getApplicationContext()
. This way my custom theme doesn't override the Toast
default theme. Example:
Toast.makeText(getApplicationContext(), R.string.toast_agenda, Toast.LENGTH_SHORT).show();
Is there any way to do something similar on a ContextMenu
?