android - Hide context menu without disabling text selection -


the goal show custom context menu, on top of selected text. tried clearing menu items in onsupportactionmodestarted:

@override public void onsupportactionmodestarted(android.support.v7.view.actionmode mode) {     super.onsupportactionmodestarted(mode);     mode.getmenu().clear();     mode.getmenu().close();  } 

but context menu still showing blank background , button , no items inside

i tried setting <item name="windowactionmodeoverlay">false</item> apptheme no avail.

is there way this?

have tried way? @override public void onactionmodestarted(actionmode mode) { super.onactionmodestarted(mode); mode.getmenu().clear(); mode.getmenu().close(); }

i have made without support , worked. have not needed: <item name="windowactionmodeoverlay">false</item>

remember implement in 1 activity.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -