Search in sources :

Example 1 with OnScrollListener

use of com.comcast.freeflow.core.FreeFlowContainer.OnScrollListener in project FreeFlow by Comcast.

the class ArtbookActivity method onDataLoaded.

public void onDataLoaded(DribbbleFeed feed) {
    Log.d(TAG, "photo: " + feed.getShots().get(0).getImage_teaser_url());
    adapter.update(feed);
    container.dataInvalidated();
    container.setOnItemClickListener(new OnItemClickListener() {

        @Override
        public void onItemClick(AbsLayoutContainer parent, FreeFlowItem proxy) {
        }
    });
    container.addScrollListener(new OnScrollListener() {

        @Override
        public void onScroll(FreeFlowContainer container) {
            Log.d(TAG, "scroll percent " + container.getScrollPercentY());
        }
    });
}
Also used : OnItemClickListener(com.comcast.freeflow.core.AbsLayoutContainer.OnItemClickListener) OnScrollListener(com.comcast.freeflow.core.FreeFlowContainer.OnScrollListener) FreeFlowContainer(com.comcast.freeflow.core.FreeFlowContainer) FreeFlowItem(com.comcast.freeflow.core.FreeFlowItem) AbsLayoutContainer(com.comcast.freeflow.core.AbsLayoutContainer)

Aggregations

AbsLayoutContainer (com.comcast.freeflow.core.AbsLayoutContainer)1 OnItemClickListener (com.comcast.freeflow.core.AbsLayoutContainer.OnItemClickListener)1 FreeFlowContainer (com.comcast.freeflow.core.FreeFlowContainer)1 OnScrollListener (com.comcast.freeflow.core.FreeFlowContainer.OnScrollListener)1 FreeFlowItem (com.comcast.freeflow.core.FreeFlowItem)1