You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get the swiped card direction, whether it's swiped left or right ? #2
// Get the item that was just swiped
val swipedItem = allPhotos[currentItemIndex]
// Print the swiped item
Toast.makeText(this@PhotoSwipeActivity, "The currently swiped item is: ${swipedItem.name}", Toast.LENGTH_SHORT).show()
// Increment the counter to track the next item
currentItemIndex++
}
}
}
Activity