MaterialList icon indicating copy to clipboard operation
MaterialList copied to clipboard

why can't i display a BigImageCard with Description

Open didadida-r opened this issue 8 years ago • 1 comments

i just simply use the sample code to display a BigImageCard, but the description would't works!

here is my code

card = new Card.Builder(MainActivity.this) .setTag("BIG_IMAGE_CARD") .withProvider(new CardProvider()) .setLayout(R.layout.material_big_image_card_layout) .setTitle(" ") .setDescription("new one") .setDrawable(item.getString("webformatURL")) .endConfig() .build(); materialListView.getAdapter().add(card);

didadida-r avatar May 10 '16 00:05 didadida-r

The layout for material_big_image_card_layout does not contain a description textview by default. If you want to have a description field, you can define your own layout.

FHellmann avatar May 10 '16 08:05 FHellmann