How to check if view exists


Last Updated:

  1. UziTech

    UziTech New Member This Topic's Starter

    Joined:
    Feb 7, 2010
    Messages:
    3
    Likes Received:
    0
    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...