i have a kotlin app. i want to be able to add and delete images, and see them. i have a…
- User
i have a kotlin app. i want to be able to add and delete images, and see them. i have a database prepared, its named ImageDB. I also have an Images class, which holds information about an image. i have addImage and deleteImage methods. these already exist and work. In my activity, i have a button which adds an image from the gallery. i also have a recyclerview in which i want to show my images. when i hold an image, i want to show a context menu which allows me to delete it. how can i go around implementing that?
- Assistant
To add and delete the images in your Kotlin app and show them in a RecyclerView, you can follow these steps: