How to apply PanelSlideListener on com.sothree.slidinguppanel.SlidingUpPanelLayout slidup library

216 Views Asked by At

Hello friend i am using sothree slideup panel library i want implement listener on it How I can implement listener for detecting slid up and slide down panel here my code which main sothree library in XML file mLayout = (SlidingUpPanelLayout) findViewById(R.id.activity_main);

1

There are 1 best solutions below

0
Lazy On

You can add the listener by onPanelSlide method. Here's an example:

@Override
public void onPanelSlide(View panel, float slideOffset) {
    Log.i(TAG, "onPanelSlide, offset " + slideOffset);
}

You can see the full code in the demo provided on github here