public static interface SimpleAdapter.ViewBinder
android.widget.SimpleAdapter.ViewBinder |
SimpleAdapter的外部客户端可以使用此类将值绑定到视图。 您应该使用此类将值绑定到SimpleAdapter不直接支持的视图,或者更改SimpleAdapter支持的视图的绑定方式。
Public methods |
|
---|---|
abstract boolean |
setViewValue(View view, Object data, String textRepresentation) 将指定的数据绑定到指定的视图。 |
boolean setViewValue (View view, Object data, String textRepresentation)
将指定的数据绑定到指定的视图。 当此ViewBinder处理绑定时,此方法必须返回true。 如果此方法返回false,则SimpleAdapter将尝试自行处理绑定。
Parameters | |
---|---|
view |
View : the view to bind the data to |
data |
Object : the data to bind to the view |
textRepresentation |
String : a safe String representation of the supplied data: it is either the result of data.toString() or an empty String but it is never null |
Returns | |
---|---|
boolean |
true if the data was bound to the view, false otherwise |