How to make Floating Context Menu in Android

Full source of Android to create a floating context menu, which will appear when we long click on a particular view or item. For this we will create a menu xml file, override onCreateContextMenu to inflate this menu, use the registerForContextMenu method to set it on a TextView and finally handle clicks by overriding onContextItemSelected … Read more