Is there a way to check if a view contains another certain view? I have an AbsoluteLayout view that I add multiple views to (buttons). I have a certain button, let's call it reportButton, and I want to check to see if its already within my AbsoluteLayout view. Is there like an AbsoluteLayout.contains(reportButton) method or something of the kind?
This is what I want to do. "myLayout" is the absolutelayout and "reportAll" is the button.
Using java Syntax Highlighting
class reportAllButtonThread implements Runnable {
//@Override
public void run() {
while(true) {
if (myLayout.contains(reportAll)) {
//Do something
}
}
}
}
Parsed in 0.031 seconds, using
GeSHi 1.0.8.4
Suggestions?
Thanks.