سؤال

How can we get the current position, or the current item, of the CardScrollView? I have not seen a getCurrentPosition() or public getItem() on CardScrollView or CardScrollAdapter.

هل كانت مفيدة؟

المحلول

CardScrollView (javadoc link) has the methods getSelectedItem() to return the item associated with the currently selected card, and getSelectedItemPosition() to return its index.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top