I am resizign LinearLayout from it’s original height to 0 with:
ViewGroup.LayoutParams params = getLayoutParams();
params.height = newHeight;
requestLayout();
Everything works except newHeight = 0 – layout’s height changes back to its original height. How can I avoid it ?
Setting visibility to GONE if newHeight == 0 does not help.
Try this…..