In my app, I have a ListView
with List
item, long press will display ContextMenu
. Here, I need to do Orientation
change. So that, I followed like without adding onConfigChanges
attribute in Manifest file manually i have handle that Orientation
change using onRetainNonConfigurationChanges()
method.
My issue is after item long press it will show the ContextMenu
on that time if change the Orientation it's getting closed.
Please refer any solution other than adding android:onConfigChnage="orienation"
in Manifest.