EfficientAdapter v2.0 Release Notes

Release Date: 2015-09-19 // over 8 years ago
    • Re-write the adapter to be compatible with ViewPager

    How to migrate from 1.x:

    • the gradle import change from com.skocken:efficientadapter.lib:1.2.+ to com.skocken:efficientadapter:2.0 (.lib disappear)
    • ๐Ÿ“‡ Rename all AbsViewHolderAdapter to EfficientAdapter
    • ๐Ÿ“‡ Rename all AbsViewHolder to EfficientViewHolder
    • ๐Ÿ“‡ Rename all HeterogeneousAdapter and SimpleAdapter to EfficientRecyclerAdapter
    • ๐Ÿ“‡ Rename all AbsViewHolderAdapter.OnItemClickListener by EfficientAdapter.OnItemClickListener
    • ๐Ÿšš The function remove(int position) changed to removeAt(int position)
    • ๐Ÿšš The function moved(int from, int to) changed to move(int from, int to)
    • The method protected Class<?> getViewHolderClass() into the Adapter is going public now
    • The method protected int getLayoutResId() into the Adapter is going public now
    • Proguard: replace AbsViewHolder by EfficientViewHolder