<swipeToDelete works but can't get icon to show up...
# stackoverflow
u
swipeToDelete works but can't get icon to show up I wanted my listitems to be swipeabel in order to delete them and I found this code through a video and it works for me if i comment out some stuff and dont't pass a context to the abstract class. now the thing is that I can't get the delete icon to work and the problem seems to be that by the time i call this abstract class i don't yet have usable context i can pass on. abstract class SwipeToDeleteCallback(context: Context) : ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT) {...