Android自定义Adapter--继承于SimpleAdapter今天晚上做一个依据数组中元素是否为null,来设置textView的可
Android自定义Adapter--继承于SimpleAdapter
今天晚上做一个依据数组中元素是否为null,来设置textView的可见性,本来想用简单的用setVisibility来实现,结果好像没有什么效果,后来去看SimpleAdapter的getView()原理,发现可以bindView方法中实现这一功能,于是有了下面RemindViewAdapter类,代码基本是在SimpleAdapter中摘抄出来的。可见平时克服恐惧心理去研究sdk中的代码的重要性。
