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
747
forks
source link
I modified the calculateActiveItem method and the calculateMostVisibleItem method. #109
I modified the calculateActiveItem method and the calculateMostVisibleItem method.
I think the call to the deactivate method should destroy the previous call to the deactivate method on the next display, which is more logical.
I modified the calculateActiveItem method and the calculateMostVisibleItem method. I think the call to the
deactivate
method should destroy the previous call to thedeactivate
method on the next display, which is more logical.` private void calculateActiveItem(ItemsPositionGetter itemsPositionGetter, ListItemData listItemData) { /* 1. / int currentItemVisibilityPercents = listItemData.getVisibilityPercents(mListItems); if (SHOW_LOGS) Logger.v(TAG, "calculateActiveItem, mScrollDirection " + mScrollDirection);