예제 #1
0
  @AfterViews
  void initViews() {
    ((SimpleItemAnimator) resourcesList.getItemAnimator()).setSupportsChangeAnimations(false);

    swipeRefreshLayout.setOnRefreshListener(this);
    swipeRefreshLayout.setColorSchemeResources(
        R.color.js_blue, R.color.js_dark_blue, R.color.js_blue, R.color.js_dark_blue);

    resourcesList.addOnScrollListener(new ScrollListener());
  }
예제 #2
0
  @Override
  protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    resourcesList.setAdapter(mAdapter);
    if (mInited) return;

    mEventListener.onInit();
  }