To see such an effect, you can set it through the menu
. 1. In the xml file, just add a control, here I give him a most common text.
2. Create a menu folder and create a menu resource file
3. In the main file Get the text control and give it a context menu.
4. Create a menu context menu.
5. Realize item click events.
6. The effect is as follows
The realization method of android-context menu (menu bound control)
Guess you like
Origin blog.csdn.net/Willow_Spring/article/details/112922454
Recommended
Ranking