当我使用 SimpleCursorAdapter 的构造函数时,它告诉我构造函数未定义。
我应该怎么办?
public class ReminderListFragment extends ListFragment implements LoaderCallbacks<Cursor> {
private SimpleCursorAdapter mAdapter;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String[] from = new String[] {ReminderProvider.COLUMN_TITLE};
int[] to = new int[] {R.id.text1};
mAdapter = new SimpleCursorAdapter(getActivity(), R.layout.reminder_row, null, from, 2, 0);
setListAdapter(mAdapter);
getLoaderManager().initLoader(0, null, this);
}