Android Question Test if a view is on the screen?

Discussion in 'Android Questions' started by cyiwin, Jul 24, 2015.

  1. cyiwin

    cyiwin Active Member Licensed User

    We have a way to test if a view is able to be viewed, example
    Code:
    Log(panel1.Visible)
    Is there a way to test if the panel is on the screen? If I have several panels on a scrollview how do you test which panels are really on the screen at any given time?
     
  2. cyiwin

    cyiwin Active Member Licensed User

    I suppose that wasn't the greatest of questions, I can always grab a views position and compare it with the devices screen size or a ScrollPosition. I guess I was thinking there should be a panel.Viewable member. Sorry for the time waste.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice