samedi 9 mai 2015

Fetching data from SQLite Database to Custom Card GridView( Library: Gabrielemariotti)

I am using this card library http://ift.tt/1cFJ5Id. I have implemented custom cardgridcursoradapter and passed cursor in constructor of this class. This is my custom cardgridcursoradapter class.

class CustCursorAdapter extends CardGridCursorAdapter{


    public CustCursorAdapter(Context context, Cursor c, boolean autoRequery) {
        super(context, c, autoRequery);
    }

    @Override
    protected Card getCardFromCursor(Cursor cursor) {

        MyCard card = new MyCard(super.getContext());

        return card;
    }

}

This is not displaying the Card Grid View. Am i missing anything?

Aucun commentaire:

Enregistrer un commentaire