Android: Invisible objects still clickable

后端 未结 6 601
小蘑菇
小蘑菇 2021-01-17 11:28

I have an activity that has buttons and images that can appear and disappear depending on user interactions.

What I am finding is that objects at the back, which hav

6条回答
  •  一整个雨季
    2021-01-17 11:46

    Try object.setVisibility(View.GONE)

    View.GONE prevents view to draw its layout bounds (width and height) whereas View.INVISIBLE draws it.

提交回复
热议问题