ExpandableCardView icon indicating copy to clipboard operation
ExpandableCardView copied to clipboard

click to expand

Open LAIMX opened this issue 6 years ago • 2 comments

hi! I appreciate that you provide this library. ExpandableCardView is definitely useful for me. But I have a question about clicking to expand.

When I click the arrow_button, the card would be expanded, also when click the title area, it would be expanded. But what I want is only click the arrow_button, and then expanded. but clicking other area would not be expanded. so, could you guys provide me some solution for this issues?

Thanks alot!

Derek

LAIMX avatar May 20 '19 02:05 LAIMX

Hi LAIMX, I have same problem too, did you solve it ?

JavaDeveloper08 avatar Nov 17 '19 19:11 JavaDeveloper08

Hi LAIMX, I solved problem,

If you change code like that ;

if(expandOnClick){ header.setOnClickListener(defaultClickListener); arrowBtn.setOnClickListener(defaultClickListener); }

This code runs both header and arrow icon press, If you want only arrow icon press, you may remove "header.setOnClickListener(defaultClickListener); " line.

Best,

JavaDeveloper08 avatar Dec 31 '19 09:12 JavaDeveloper08