Hello,

I'd like to append childs to a custom AdapterView<CursorAdapter> to
fill it with data.
Can anyone help me to understand how this works? In the docs I read:

"Adapter that exposes data from a Cursor to a ListView widget"
(from: http://developer.android.com/reference/android/widget/CursorAdapter.html)

I understand how to implement the newView() and bindView() methods in
CursorAdapter,
but how do I have to implement the lower 2 of these methods in
MyAdapterView:

MyAdapterView extends AdapterView<CursorAdapter> {
...
@Override
public void setAdapter(CursorAdapter adapter) { // called this in
constructor to set the adapter
        this.myAdapter = adapter;
}
@Override
public CursorAdapter getAdapter() {
        return myAdapter;
}
@Override
public View getSelectedView() {
        // WHAT TO DO HERE ?
}
@Override
public void setSelection(int position) {
        // WHAT TO DO HERE ?
}


Best Regards,
cody

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to