1. Check out our companion app, Forums for Android! Download from Google Play

How to check if view exists

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

  1. UziTech

    UziTech New Member
    Thread Starter
    5

    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...