Java Code Examples for com.sothree.slidinguppanel.SlidingUpPanelLayout#PanelSlideListener
The following examples show how to use
com.sothree.slidinguppanel.SlidingUpPanelLayout#PanelSlideListener .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseActivity.java From SkyTube with GNU General Public License v3.0 | 6 votes |
private SlidingUpPanelLayout.PanelSlideListener getOnPanelDisplayed(final int position, final int duration) { return new SlidingUpPanelLayout.PanelSlideListener() { @Override public void onPanelSlide(View view, float v) { } @Override public void onPanelStateChanged(View panel, SlidingUpPanelLayout.PanelState previousState, SlidingUpPanelLayout.PanelState newState) { if (newState == SlidingUpPanelLayout.PanelState.COLLAPSED) { chromecastMiniControllerFragment.setDuration(duration); chromecastMiniControllerFragment.setProgress(position); chromecastControllerFragment.setDuration(duration); chromecastControllerFragment.setProgress(position); slidingLayout.removePanelSlideListener(this); } } }; }
Example 2
Source File: SlidingUpPanelLayoutAdapter.java From android-transition with Apache License 2.0 | 2 votes |
/** * Sets a listener that can provide further customization, the respective calls to the listener is performed after the adapter has completed its own processing. * * @param listener */ public void setPanelSlideListener(@Nullable SlidingUpPanelLayout.PanelSlideListener listener) { mListener = listener; }