I have a little doubt .. I am setting up an item_layout for the cells of a list .. There is a way to handle the height of the cells, according to the data that they load ... I'm using
PercentRelativeLayout oidit;
oidit = (PercentRelativeLayout) itemView.findViewById(R.id.idit);
oidit.getLayoutParams().height = 100;
to enlarge some cells of the list programmatically, the problem is: on a 1080 dpi screen it works fine but on a larger screen like 1440 dpi or a tablet
oidit.getLayoutParams().height = 100;
is not enough to show the data remains I have to add more dp: not 100dp but 200 or 250 dp at height. I wanted to know if there is a way for the given value to adapt to any screen?