itemtouchhelper-extension
itemtouchhelper-extension copied to clipboard
onSwiped method
I know there is a onSwiped method in the helper and callback classes however how can I use that method to access a view component in the activity? My use case consists of a main activity and a fragment. The adapter class shows the rows in the fragment through the activity class, now I need to change the text and an imageview when a row gets swiped, how can I access the textview and imageview present in the fragment through the onSwipe method?