Most visited

Recently visited

Added in API level 1

SimpleCursorAdapter.ViewBinder

public static interface SimpleCursorAdapter.ViewBinder

android.widget.SimpleCursorAdapter.ViewBinder


SimpleCursorAdapter的外部客户端可以使用此类将Cursor的值绑定到视图。 您应该使用此类将Cursor中的值绑定到SimpleCursorAdapter不直接支持的视图,或者更改SimpleCursorAdapter支持的视图的绑定方式。

也可以看看:

Summary

Public methods

abstract boolean setViewValue(View view, Cursor cursor, int columnIndex)

将由指定索引定义的Cursor列绑定到指定的视图。

Public methods

setViewValue

Added in API level 1
boolean setViewValue (View view, 
                Cursor cursor, 
                int columnIndex)

将由指定索引定义的Cursor列绑定到指定的视图。 当此ViewBinder处理绑定时,此方法必须返回true。 如果此方法返回false,则SimpleCursorAdapter将尝试自行处理绑定。

Parameters
view View: the view to bind the data to
cursor Cursor: the cursor to get the data from
columnIndex int: the column at which the data can be found in the cursor
Returns
boolean true if the data was bound to the view, false otherwise

Hooray!