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.