How to set RecyclerView item max height relative to parent
问题 I've almost got this working by following the suggestions in this question Android percent screen width in RecyclerView item However that sets a height for all views, same height regardless of the content. In my case I just want to limit how tall an item inside the RecyclerView can be related to its height. In my RV I have items that have different heights, with some of those items capable of being even taller than the RV. My goal is to tell that the item can be at max 60% of the RecyclerView