Can you hide an element in a layout, such as a spinner, depending on an activity?

我与影子孤独终老i 提交于 2019-12-03 09:33:20

Call setVisibility(View.INVISIBLE) or setVisibility(View.GONE) on the Spinners as needed to hide them. GONE means totally gone; INVISIBLE means they still take up space but no pixels are drawn.

You can use a View's method setVisibility: You can hide or show views using setVisibility(int visibility).

Where the argument can be INVISIBLE or GONE, depending on whether you want it to take up any space when it's invisible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!