I have a RecyclerView
with a grid layout, every item is a CardView
and I want to set an unique height for every card, in particular this height must be modifiable at runtime through a method/property of the adpter and the new value must be applied instantaneously to all items of the grid. How can I achieve this?
Asked
Active
Viewed 56 times
0

arabum97
- 5
- 3
1 Answers
0
You can use dimens.xml and there for to define an item with name and height which you want and then only call in the xml at layouts. Here you have the link with answer. https://stackoverflow.com/a/47321385/9560126

TheCoderGuy
- 771
- 6
- 24
- 51