setVisibility(GONE) view becomes invisible but still occupies space

后端 未结 13 1987
我在风中等你
我在风中等你 2020-12-03 03:56

I\'ve got a view that is effectively is a button. Here is its XML layout (add_new.xml)




        
13条回答
  •  再見小時候
    2020-12-03 04:44

    What you can do is set an if statement, whenever the condition to set the visibility to "GONE", set the view as wrap content and your space will be free, I did it and it worked for a seekbar

提交回复
热议问题