Android SlidingPaneLayout hides misconceptions

I use SlidingPaneLayout in my application, and I have a problem because when I open the slide panel, the entire closed panel does not disappear, but only some elements inside it, such as TextViews, Buttons and ImageViews, How can I completely remove the fading or make weaken the entire closed panel?

+4
source share
2 answers

More recently, it turned out that when I changed the default background of the entire layout, it completely distorted the entire fragment.

+3
source

You can set the transparent fade color:

SlidingPaneLayout sp = (SlidingPaneLayout) findViewById (R.id.mainSlider); sp.setSliderFadeColor(GetResources() GetColor (android.R.color.transparent).);

, .

+1

Source: https://habr.com/ru/post/1569202/


All Articles