Releases: ahmedrizwan/RxRecyclerAdapter
Releases · ahmedrizwan/RxRecyclerAdapter
RxDataSource
Wrapper around RxAdapter for manipulating data streams.
Method OnViewHolderInflated Added
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()));
}
}
});