OnItemSelectedListener

OnItemSelectedListener

本文介绍了onItemClickListener和适配器视图的OnItemSelectedListener的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两个听众之间的区别是什么,文件说:

What is the difference between these two listeners,documentation says :

OnItemSelectedListener - 当在这个视图中的项目已选定要调用回调接口定义

OnItemSelectedListener - Interface definition for a callback to be invoked when an item in this view has been selected.

OnItemClickListener - 当此适配器视图项目已被点击时要调用回调接口定义

OnItemClickListener - Interface definition for a callback to be invoked when an item in this AdapterView has been clicked.

选择,请点击是不是这些相同的触摸屏?

Selection,Click aren't these equal on touch screen?

推荐答案

OnItemSelectedListener用于纺纱,并OnItemClickListener用于列表视图。

OnItemSelectedListener is used for Spinners, and OnItemClickListener is used for ListViews.

这篇关于onItemClickListener和适配器视图的OnItemSelectedListener的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-13 17:12