tjerkw/Android-SlideExpandableListView

how to do with the expandable_button

Opened this issue · 1 comments

my expandable_button is a image arrow, when i click it , i want to change the it and set another arrow.
like: < to >,
or : ^ to > , etc
how can i do ?

My solution like this.
Defined a view extends ImageView called ToggleExpandableMenuButton,There is an interface in it.
public interface ToggleListener {
void toggle();
}
Override the method performClick(){
if (listener != null) {
listener.toggle();
}
}

And set a ToggleListener on your ToggleExpandableMenuBotton in your adapter.
If I don't talk it clear ,download the attachment and change the suffix to '.java' or leave ur email here.
toggleexpandablemenubutton