gabrielemariotti / cardslib

Android Library to build a UI Card
4.67k stars 1.19k forks source link

Dynamic TextView MaterialLargeImageCard #555

Open s3000-f opened 7 years ago

s3000-f commented 7 years ago

I have a list of MaterialLargeImageCard's in my app and there are 4 TextViews in each of these cards. I need to set text of these TextViews while making the card the way the cards where initiated in the docs was like

MaterialLargeImageCard card =
                    MaterialLargeImageCard.with(rootView.getContext())
                            .setTextOverImage("Username " + (i + 1))
                            .useDrawableId(R.drawable.soosk)
                            .setupSupplementalActions(R.layout.carddemo_native_material_supplemental_actions_large_icon, actions)
                            .build();

how can I initiate the TextViews while doing this?