danylovolokh / VideoPlayerManager

This is a project designed to help controlling Android MediaPlayer class. It makes it easier to use MediaPlayer ListView and RecyclerView. Also it tracks the most visible item in scrolling list. When new item in the list become the most visible, this library gives an API to track it.
3.15k stars 746 forks source link

Does this library account for recycler view's top padding and for collapsable toolbar with recycler view #12

Open laaptu opened 8 years ago

laaptu commented 8 years ago

I am just looking at the implementation of getVisibilityPercents(View view) on visibility_demo package. Does that implementation account for RecyclerView top padding ? Further , if there is implementation of Collapsable Toolbar, does it account for that as well? I have also implemented a similar project recently, and for visibility calculation, I have relied on finding out Y position of view and making necessary calculation for Collapsable Toolbar. If I am missing something, please point me out in the right direction. I know we can add our own logic on calculating visibility, but if we can provide a utility class for calculating visibility on various cases,then it will be helpful for users to use as per their necessity.

danylovolokh commented 8 years ago

Sorry, I didn't play with the visibility tools so much. Feel free to try it out :)