I think my question should be simple to answer, but I really don't know the answer so here goes:
I am trying to subtract the original height from a layout
50 dps
. Right now I do it as follows:
v.getLayoutParams().height = initialHeight - 50;
v.requestLayout();
The problem with this is that it's subtracting via the metric px
, and I'd like to work withdp