• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to check if view exists

UziTech

Lurker
Feb 7, 2010
3
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()

?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones