traex / ExpandableLayout

Implementation of ExpandableListview with custom header and custom content.
MIT License
1.64k stars 361 forks source link

added listener for events. #44

Closed garam-park closed 4 years ago

garam-park commented 8 years ago

I added code for observations.

Some times, I need handling start and end of animations.

Listener is used above.

    private ExpandableLayout expandableLayout;

    expandableLayout.setOnStartHidingListener(new ExpandableLayout.OnStartHidingListener() {
        @Override
        public void onHidingowing(ExpandableLayout layout) {

        }
    });

    expandableLayout.setOnStartShowingListener(new ExpandableLayout.OnStartShowingListener() {
        @Override
        public void onStartShowing(ExpandableLayout layout) {

        }
    });

    expandableLayout.setOnFinishHidingListener(new ExpandableLayout.OnFinishHidingListener() {
        @Override
        public void onFinishHiding(ExpandableLayout layout) {

        }
    });

    expandableLayout.setOnFinishShowingListener(new ExpandableLayout.OnFinishShowingListener() {
        @Override
        public void onFinishShowing(ExpandableLayout layout) {

        }
    });