MaterialList
MaterialList copied to clipboard
why can't i display a BigImageCard with Description
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);
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.