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
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.
I am just looking at the implementation of
getVisibilityPercents(View view)
onvisibility_demo
package. Does that implementation account forRecyclerView
top padding ? Further , if there is implementation ofCollapsable 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 outY position
of view and making necessary calculation forCollapsable 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.