本文介绍了如何处理一个定制的Andr​​oid视图/小部件的可视性变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写在Android的自定义视图。我需要做一些处理,当这种观点的能见度变化。有一些听众当一个视图/小部件的可见性改变它叫什么名字?

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 view/widget is changed ?

编辑:

我知道如何改变的知名度,想知道是否有一个被称为当我们setVisibility的观点听众!

I know how to change the visibility, would like to know if there is a listener which is called when we setVisibility on the view!

推荐答案

你想要做自定义视图类中的处理?如果是这样,那么为什么不直接覆盖setVisibility()方法,调用super(),然后做你的自定义处理?

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?

这篇关于如何处理一个定制的Andr​​oid视图/小部件的可视性变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 16:18