How to handle visibility changes for a custom android view/widget

前端 未结 4 1999
感情败类
感情败类 2021-01-04 05:09

I have written a custom view in android. I need to do some processing when visibility of this view is changed. Is there some listener which is called when visibility of a vi

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-04 06:11

    To change the visibility of a widget, use the widget.setVisibility(View.Visible) or widget.setVisibility(View.Invisible) methods.

提交回复
热议问题