We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when expanding or Collapsing, never calling renderParent
The text was updated successfully, but these errors were encountered:
I have the same issue.....can't change the collapse image
Sorry, something went wrong.
Swap the arrow in the setRenderer to this:
view.findViewById(R.id.arrow).setBackgroundResource(isExpanded ? R.drawable.arrow_down : R.drawable.arrow_up);
Then you can can this two functions already available in the library with this:
sectionLinearLayout.setExpandListener((ExpandCollapseListener.ExpandListener<FruitCategory>) (parentIndex, parent, view) -> { /* change arrow when expanded */ view.findViewById(R.id.arrow).setBackgroundResource( R.drawable.arrow_down); });
sectionLinearLayout.setCollapseListener((ExpandCollapseListener.CollapseListener<FruitCategory>) (parentIndex, parent, view) -> { /* change arrow when collapsed */ view.findViewById(R.id.arrow).setBackgroundResource( R.drawable.arrow_up); });
That is the way to change the arrow up and arrow down
No branches or pull requests
when expanding or Collapsing, never calling renderParent
The text was updated successfully, but these errors were encountered: