Floating Context Menu | Long Click Menu | Android Application Development
In this video you will learn, how 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 and check for the ID of the clicked item. Lastly we will learn, how to add a header title to our floating context menu by using the setHeaderTitle method.
Видео Floating Context Menu | Long Click Menu | Android Application Development канала Laxmo SoftTech
Видео Floating Context Menu | Long Click Menu | Android Application Development канала Laxmo SoftTech
Комментарии отсутствуют
Информация о видео
20 августа 2021 г. 9:14:31
00:18:50
Другие видео канала