Code example for ResourceCursorAdapter

public class PeriodicalsAdapter extends ResourceCursorAdapter {
    private LayoutInflater mInflater;
    public PeriodicalsAdapter(Context context) {
        super(context, 0, null, 0);
        mInflater = LayoutInflater.from(context);
    private class ViewHolder { 
        TextView text1;
        TextView text2;
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder;
        if (convertView == null) {
            holder = new ViewHolder();
Connect your IDE to all the code out there  Get Codota for Java