I want to set Max Height of RecylerView.I am able to set max height using below code.Below code makes height 60% of current screen.
DisplayMetrics displ
I think this will work at least it worked for me
You can change the constraintHeight_max and constraintHeight_min according to your needs.
constraintHeight_max
constraintHeight_min