Exemplo n.º 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());
  }
Exemplo n.º 2
0
  @Override
  protected void onAttachedToWindow() {
    super.onAttachedToWindow();
    resourcesList.setAdapter(mAdapter);
    if (mInited) return;

    mEventListener.onInit();
  }