Code example for SpinnerAdapter

Methods: getCount

0
            this.mListAdapter = (ListAdapter) adapter;
        } 
    } 
 
    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) {