ExpandableCardView icon indicating copy to clipboard operation
ExpandableCardView copied to clipboard

Inner View does not resize

Open stleusc opened this issue 7 years ago • 1 comments

Thanks for this great library. I have one issue though (and I think others too).

How to recreate the issue: add a button into the layout of your inner view. on click of the button and a label into the inflated inner view. repeat... you will see that the expanded card does NOT resize.

Not sure what the reason is though.

stleusc avatar Dec 28 '18 05:12 stleusc

A little workaround for this issue is this codesnippet

ExpandableCardView ecv = findViewById(R.id.expandable_card_view);

if (ecv.isExpanded()) {
    ecv.collapse();
    ecv.expand();
}

So this card will be closed and reopened again. On reopen the dimension will be computed correct.

modul-23 avatar Apr 05 '19 07:04 modul-23