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

前端 未结 4 2030
感情败类
感情败类 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 05:52

    Do you want to do that processing within your custom view class? If so, then why not just override the setVisibility() method, call super(), and then do your custom processing?

提交回复
热议问题