@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()); }
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); resourcesList.setAdapter(mAdapter); if (mInited) return; mEventListener.onInit(); }