Skip to content

Releases: ahmedrizwan/RxRecyclerAdapter

RxDataSource

27 Dec 11:21
Compare
Choose a tag to compare

Wrapper around RxAdapter for manipulating data streams.

Method OnViewHolderInflated Added

14 Dec 03:56
Compare
Choose a tag to compare

Added method setOnViewHolderInflated for RxAdapter and RxAdapterForTypes
For example, if you want to change the height of an item dynamically based on viewType - code will be

rxAdapterForTypes.setOnViewHolderInflate(new OnViewHolderInflated() {
            @Override
            public void onInflated(final View view, final ViewGroup parent, final int viewType) {
                if(viewType==1){
                    view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
                            parent.getMeasuredHeight()));
                }
            }
});