Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 381 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 381 Bytes

LazyFragment

Android class for lazy loading data to viewpager fragment.

Data will load when onFirstVisible() is calling.

Usage:

class MyFragment extends LazyFragment {
  ...
  @Override
  public void onFirstVisible(){
    // load data to fragment  
  }
  
  @Override
  public void onVisibilityChange(boolean isVisible) {
    // catch visibility change  
  }
}