Code example for Spinner

Methods: getCount

0
            @Override 
            public Boolean call() throws Exception {
                if (spinner == null) {
                    throw new IllegalArgumentException("Spinner should not be null!");
                } 
                return spinner.getCount() > 0;
            } 
        }; 
    } 
}