例如我的一个TabHost选项卡对应的页面中有一个Button,我怎么能够快捷的获取这个Button所在的TabHost,我可以获取到这个TabHost,但是比较费劲,不知道哪位高人有没有很便捷的方法,谢谢。
------解决方案--------------------
这个函数怎么样?
public final ViewParent getParent ()
Gets the parent of this view. Note that the parent is a ViewParent and not necessarily a View.
------解决方案--------------------
纯属支持