I think you just want

http://developer.android.com/reference/android/view/View.html#findViewById(int)

On Apr 18, 2:53 pm, xspotlivin <[email protected]> wrote:
> 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.
>
>     class reportAllButtonThread implements Runnable {
>         //@Override
>         public void run() {
>                 while(true) {
>                         if (myLayout.contains(reportAll)) {
>                                 //Do something
>                         }
>                 }
>         }
>     }
>
> Suggestions?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to