How can I get a current item in RecycerView
? In my use-case RV item takes all screen space, so there is only one item at a time.
I've tried to google before, but nothing helpful was found.
The whole use case:
UI. The bottom navigation has a button that should call a certain method (let's say a
foo()
method) in fragmentthis
foo()
method should get a visible item from the adapter and call a specific method in a presenter.