Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
  
  
SpinnerAdapter
  public
  
  
  
  interface
  SpinnerAdapter
  
  
      implements
      
        Adapter
      
  
  
  
    
    | android.widget.SpinnerAdapter | 
  
  
  
    
      | 
          Known indirect subclasses
          
  
  
         | 
  
    
  Extended Adapter that is the bridge between a
 Spinner and its data. A spinner adapter allows to
 define two different views: one that shows the data in the spinner itself
 and one that shows the data in the drop down list when the spinner is
 pressed.
Summary
| Public methods | 
|---|
  
  
  
    | 
        abstract
        
        
        
        
        View | 
      getDropDownView(int position, View convertView, ViewGroup parent)
      Gets a Viewthat displays in the drop down popup
 the data at the specified position in the data set. | 
  
Public methods
    getDropDownView
    
public abstract View getDropDownView (int position, 
                View convertView, 
                ViewGroup parent)
    
    
    
  Gets a View that displays in the drop down popup
 the data at the specified position in the data set.
    
    | Parameters | 
|---|
      
        | position | int: index of the item whose view we want. | 
      
        | convertView | View: the old view to reuse, if possible. Note: You should
        check that this view is non-null and of an appropriate type before
        using. If it is not possible to convert this view to display the
        correct data, this method can create a new view. | 
      
        | parent | ViewGroup: the parent that this view will eventually be attached to | 
    
    
      | Returns | 
|---|
      
        | View | a Viewcorresponding to the data at the
         specified position. | 
    
 
 
 
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]