MaterialList icon indicating copy to clipboard operation
MaterialList copied to clipboard

cannot resolve method.

Open amirfazwan opened this issue 10 years ago • 3 comments

Hello, thanks for this great library.

I would like to request some help. I've followed the steps, but I still can't add the card to the Material List. I've added the "compile 'com.github.dexafree:materiallist:2.3.0'" to dependencies. screen shot 2015-03-02 at 2 06 45 am and also this error while in the preview page. screen shot 2015-03-02 at 2 06 31 am how to solve? thanks.

amirfazwan avatar Mar 01 '15 18:03 amirfazwan

Hi!

Instead of

Card card = new BasigImageButtonsCard(this);

Try by

BasicImageButtonsCard card = new BasicImageButtonsCard(this);

Card is the most abstract type, made to represent any Card, so there might exist a Card which don't have a title. The first card that has the title attribute is SimpleCard (https://github.com/dexafree/MaterialList/blob/master/materialList/src/main/java/com/dexafree/materialList/cards/SimpleCard.java), so if you want to create Cards that have a title on it, the minimum inheritance level you should use is SimpleCard

Hope I explained well!

dexafree avatar Mar 01 '15 20:03 dexafree

Great. My memory about inheritance comes back! Thanks and sorry for troubling you. The documentation might a bit different due to code changes? I hope I can contribute.

amirfazwan avatar Mar 02 '15 05:03 amirfazwan

Yes, I will have to take a look to the docs, as the API has experienced some changes since it was done

dexafree avatar Mar 02 '15 08:03 dexafree