public void setAdapter(AbsBannerAdapter adapter) {
        if (mAdapter != null) {
            mAdapter.unregisterDataSetObserver(mDataObserver);
        }
        mAdapter = adapter;
        if (mIsAttachToWindow) {
            mAdapter.registerDataSetObserver(mDataObserver);
        }
        reset();
    }
@return The layers that will be re-loaded
imitate/src/main/java/com/engineer/imitate/ui/widget/opensource/InfiniteBannerView.java