1. Download our Official Android App: Forums for Android!

Apps How to check if view exists

Discussion in 'Android Development' started by UziTech, Feb 7, 2010.

  1. UziTech

    UziTech Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Feb 7, 2010

    Feb 7, 2010
    3
    0
    5
    My application has many spinner views on many different layouts. on different layouts the spinner in a similar place has the same name as spinners on other layouts. is there is a way to check if the view exits?

    (example)
    ((Spinner) FindViewById(R.Id.ProgSpin)).exists()

    ?
     

    Advertisement

Share This Page

Loading...