Skip to content

Commit ffd3a14

Browse files
committed
Changed README to reflect ViewLazyInitializeListener
1 parent 3d87eca commit ffd3a14

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ If you need to listen to screen change events you would want to implement your o
4040
}
4141
});
4242

43+
### Listen on initialize view events
44+
45+
If you need a lazy View initialization you would want to implement your own `ViewFlow.ViewLazyInitializeListener` and pass it to the `setOnViewLazyInitializeListener()` method.
46+
47+
viewFlow.setOnViewLazyInitializeListener(new ViewLazyInitializeListener() {
48+
public void onViewLazyInitialize(View view, int position) {
49+
// Your code here e.g.
50+
((MyAdapter)((AbsListView)view).getAdapter()).initializeData();
51+
}
52+
});
53+
4354
### Flow Indicator
4455
It is also possible to add a flow view indicator to your layout. The purpose of a `FlowIndicator` is to present a visual representation of where in the item list focus is at. You may either implement a `FlowIndicator` yourself or use an implementation provided by the View Flow library. The View Flow library currently supports the following indicators:
4556

0 commit comments

Comments
 (0)