iamkristher
iamkristher

Reputation: 408

Insert Images from File to ListView using SimpleCursorAdapter

How can I add images from file not as a blob using SimpleCursorAdapter?

Upvotes: 0

Views: 176

Answers (1)

nandeesh
nandeesh

Reputation: 24820

you will have to use a viewbinder, before binding each element of the list you will get a callback on

setViewValue(View view, Cursor cursor, int columnIndex)

Depending on the columnindex you can setImage and then return true for only this case. Rest all cases you will have to return false, so that the SimplecursorAdapter will fill with appropriate data

Upvotes: 1

Related Questions