Most visited

Recently visited

Added in API level 5

SimpleCursorTreeAdapter.ViewBinder

public static interface SimpleCursorTreeAdapter.ViewBinder

android.widget.SimpleCursorTreeAdapter.ViewBinder


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

也可以看看:

Summary

Public methods

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

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

Public methods

setViewValue

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

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

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!