I'm using a SlidingPaneLayout in my app and I have a problem because when I open the sliding pane, the whole covered pane doesn't fade, instead only some elements inside of it do, like TextViews, Buttons, and ImageViews. How can I either remove the fading completely or make the whole covered pane to fade out?
Asked
Active
Viewed 536 times
4
-
have a look at this http://stackoverflow.com/questions/18272856/slidingpanelayout-setcoveredfadecolor-and-setsliderfadecolor Seems to answer what you're asking to an extent (to remove the fading at least) – kha Dec 30 '14 at 15:42
-
yep i've seen this already, and it doesn't help, transparent is default and it fades a bit into grey still. – Greyshack Dec 30 '14 at 17:35
2 Answers
3
Just recently figured it out, when I changed the default background of the whole layout it fades properly the whole fragment.

Greyshack
- 1,901
- 7
- 29
- 48
1
You can set the fade color to transparent:
SlidingPaneLayout sp = (SlidingPaneLayout) findViewById(R.id.mainSlider); sp.setSliderFadeColor(getResources().getColor(android.R.color.transparent));
Hope this will help.

Sukhbir
- 1,410
- 14
- 33