posted 13 years ago
I'm still stuck on this. I've tried many combinations of setVisibility(View.GONE), parent.removeView, setMinimumHeight, invalidate, parent.requestLayout() and parent.forceLayout() - the result is alway the same: the bottom view is hidden/gone, but the top view will not take expand to take its place.
What's strange is that there are many posts out on the net where one or the other of the method calls I mentioned are said to achieve this effect; but not on my device, and not on any Android version on the emulator.
The following is the layout I'm using; I want to make the "buttons" LinearLayout disappear under certain circumstances (namely, if a soft keyboard is shown):
(Yes, I know I could be using a RelativeLayout, but that doesn't help with the problem at hand.)