android layout hide/show views

后端 未结 3 1466
余生分开走
余生分开走 2021-01-12 08:18

I have a linear vertical layout as below. I need in my application to switch the Button and the TextView. To hide button and show text then change etc. If I use setVisibilit

3条回答
  •  误落风尘
    2021-01-12 08:54

    You should used setVisibility(View.GONE) instead of setVisibility(View.INVISIBLE).

    For more information go to: http://developer.android.com/reference/android/view/View.html

提交回复
热议问题