Slidingpanelayout Setcoveredfadecolor () And Setsliderfadecolor()
I'm using the SlidingPaneLayout and want to set gray fade color on left pane when the slider right pane is open and a transparent fade color on the left pane when the right pane i
Solution 1:
From the docs:
setSliderFadeColor(int color)
Set the color used to fade the pane covered by the sliding pane out when the pane will become fully covered in the closed state.
setCoveredFadeColor(int color)
Set the color used to fade the sliding pane out when it is slid most of the way offscreen.
In my experience, I've found that the panel that gets covered needs to be at least 320dp wide for these two fade colours to work.
Post a Comment for "Slidingpanelayout Setcoveredfadecolor () And Setsliderfadecolor()"