Search in sources :

Example 1 with UltraViewPagerAdapter

use of com.tmall.ultraviewpager.UltraViewPagerAdapter in project Tangram-Android by alibaba.

the class BannerCell method initAdapter.

public void initAdapter() {
    if (mBannerAdapter == null) {
        if (serviceManager != null) {
            GroupBasicAdapter adapter = serviceManager.getService(GroupBasicAdapter.class);
            RecyclerView.RecycledViewPool pool = serviceManager.getService(RecyclerView.RecycledViewPool.class);
            mBannerAdapter = new BannerAdapter(adapter, pool);
        }
    }
    if (mBannerWrapper == null) {
        mBannerWrapper = new UltraViewPagerAdapter(mBannerAdapter);
    }
}
Also used : GroupBasicAdapter(com.tmall.wireless.tangram.core.adapter.GroupBasicAdapter) RecyclerView(android.support.v7.widget.RecyclerView) UltraViewPagerAdapter(com.tmall.ultraviewpager.UltraViewPagerAdapter)

Aggregations

RecyclerView (android.support.v7.widget.RecyclerView)1 UltraViewPagerAdapter (com.tmall.ultraviewpager.UltraViewPagerAdapter)1 GroupBasicAdapter (com.tmall.wireless.tangram.core.adapter.GroupBasicAdapter)1