Why does a LinearLayout which is invisible take up space?

后端 未结 4 804
心在旅途
心在旅途 2021-02-05 09:10

I\'ve got the following LinearLayout...



        
4条回答
  •  广开言路
    2021-02-05 09:34

    Change invisible by gone that will do the trick.

    public static final int View.INVISIBLE

    This view is invisible, but it still takes up space for layout purposes. Use with setVisibility(int).

    See View.GONE and View.INVISIBLE

提交回复
热议问题