I use SlidingPaneLayoutand want to set the gray color of the fade in the left panel when the right panel of the slider is open, and the transparent color of the fade in the left panel when the right panel is closed and the left panel is fully visible.
I know this is the default behavior for SlidingPaneLayout, but with a default implementation. I encounter problems in landscape mode, while my slider panel always remains pale and does not accept any click events, even if the right slide is closed.
I implemented SlidingPaneLayout.SimplePanelSlideListenerand controlled the fade colors in onPanelOpened()and. onPanelClosed()
But I'm sure what function should I use for this ... setCoveredFadeColor()or setSliderFadeColor()?
What is the difference between these two functions?
Any help is greatly appreciated. Thank!
source
share