Closed memorex386 closed 4 years ago
can you change the code to this to allow ConstraintLayout parent views?
static void validateParentView(View recyclerView) { View parentView = (View) recyclerView.getParent(); if (!(parentView instanceof FrameLayout) && !(parentView instanceof CoordinatorLayout) && !(parentView instanceof ConstraintLayout)) { throw new IllegalArgumentException("RecyclerView parent must be either a FrameLayout, ConstraintLayout, or CoordinatorLayout"); } }
can you change the code to this to allow ConstraintLayout parent views?