RxRecyclerAdapter v1.0.1 Release Notes

Release Date: 2015-12-14 // almost 6 years ago
  • ➕ 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() { @Overridepublic 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())); } } });