Re: [android-developers] How to test if something is a PopupWindow

2012-01-27 Thread Mark Murphy
Test getClass().getName() to see if it is "android.widget.PopupWindow$PopupViewContainer", presumably. Of course, there may be a better solution for whatever it is you are trying to do, but your rationale behind walking the view hierarchy this way escapes me. On Fri, Jan 27, 2012 at 5:14 PM, plne

[android-developers] How to test if something is a PopupWindow

2012-01-27 Thread plnelson
(I posted this on Stack Overflow but as of this writing I've received no response) I'm writing code that starts with a View object in a layout hierarchy and iteratively walks up the tree to the view root, using *getParent()*, displaying information about each level as it goes. Everything is w