[英]speener event in Custom Adapter For Listview Row Xamarin Android
I have done a custom adapter with Getview
method for a custom Row
in ListView
and it works fine. 我已经使用
Getview
方法为ListView
的自定义Row
完成了自定义适配器,并且工作正常。 I have four textviews
and one spinner in my Row
. 我的
Row
有4个textviews
和1个spinner。 I want to fire the itemSelect
event for the items of the spinner. 我想为微调器的项目触发
itemSelect
事件。 But the event fires every time I scroll! 但是,每次滚动时都会触发该事件! (so as
Getview
method).. How can I fix it please? (例如
Getview
方法)。如何解决?
Use RecyclerView
which is more dynamic and handles Spinners
, CheckBox
, Radio Buttons
etc in much better way than ListView
. 使用更动态的
RecyclerView
并比ListView
更好地处理Spinners
, CheckBox
, Radio Buttons
等。
Useful Links 有用的链接
http://andraskindler.com/blog/2014/migrating-to-recyclerview-from-listview/ http://andraskindler.com/blog/2014/migrating-to-recyclerview-from-listview/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.