You have to basically make the changes listed below :
- In Show Note Activity file you have to remove the edit and delete button so that it just becomes an activity to view the content of the notes
- Then you have to implement a Bottom Sheet Fragment where the user can get options to delete, edit and view notes.
- Finally, you have to set an "onItemLongClickListener" to the listview in MainActivity which will be used to activate the bottom sheet fragment
You can refer this to implement the Bottom sheet fragment
You have to basically make the changes listed below :
You can refer this to implement the Bottom sheet fragment