Code example for SpinnerAdapter

Methods: getItem

0
        public int getCount() { 
            return mAdapter == null ? 0 : mAdapter.getCount();
        } 
 
        public Object getItem(int position) {
            return mAdapter == null ? null : mAdapter.getItem(position);
        } 
 
        public long getItemId(int position) {
            return mAdapter == null ? -1 : mAdapter.getItemId(position);
        } 
 
        public View getView(int position, View convertView, ViewGroup parent) {
            return getDropDownView(position, convertView, parent);
        } 
 
        public View getDropDownView(int position, View convertView, ViewGroup parent) {
            return mAdapter == null ? null :
                    mAdapter.getDropDownView(position, convertView, parent);
        }