gabrielemariotti / cardslib

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

toggle expand button programatically #563

Closed pranjal-joshi closed 4 years ago

pranjal-joshi commented 7 years ago

I would like to know that is there any way to update the icon of expand button programatically?

I am using following lines of code already:

header.setButtonExpandVisible(true); ... ... cardViewNative.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { card.doToogleExpand(); } }); `` All I want is to change the expand button according to the toggle action. Right now i am using OnClickListener on cardViewNative to perform card expansion.