Difference between getView & getDropDownView in SpinnerAdapter

后端 未结 4 593
名媛妹妹
名媛妹妹 2020-11-30 23:10

When you implement SpinnerAdapter you get getDropDownView, how does it differ from getView which you have when you need to extend BaseAdapter.

4条回答
  •  既然无缘
    2020-11-30 23:37

    The accepted answer seems a little complicated, so for simplicity

    • getView - the value shown on the spinner before the user presses the spinner, where each value view can be adjusted with the convertView parameter

    • getDropDownView - list of values the user can select after the user presses the spinner, where each value in the list can be adapted with the convertView parameter

提交回复
热议问题