I have 2 TextViews as in the xml below. If I hide the textView2 at runtime, I lose the bottom margin. How can I keep the bottom margin between textView
textView2
textView
Use layout_goneMarginBottom:
layout_goneMarginBottom