Code example for ResourceCursorAdapter

0
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;
    } 
 
    @Override 
    public View getView(int position, View convertView, ViewGroup parent) {
        ViewHolder holder;
 
        if (convertView == null) {
            holder = new ViewHolder();