Android-SlideExpandableListView icon indicating copy to clipboard operation
Android-SlideExpandableListView copied to clipboard

how to do with the expandable_button

Open tracy1allen3 opened this issue 9 years ago • 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 ?

tracy1allen3 avatar May 30 '16 13:05 tracy1allen3

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

chenchongyu avatar Jul 29 '16 07:07 chenchongyu