Ramotion / cardslider-android

:octocat: 🃏 Cardslider is a material design UI controller that allows you to swipe through cards with pictures and accompanying descriptions.
https://www.ramotion.com/cardslider-android-ui-app-development-library-to-interact-with-cards/
MIT License
2.34k stars 358 forks source link

How to get position of curremt selected item? #24

Closed singhgautam7 closed 5 years ago

gsrathoreniks commented 6 years ago

Hello @TheNakedDeveloper, Follow these steps,

  1. Open MainActivity.java
  2. navigate to the function onActiveCardChange()
  3. see final int pos = layoutManger.getActiveCardPosition();
  4. Here you're getting position of the current Item in Integer pos.

I think you were looking for this, let me know if you're still confused.