SlidingPaneLayout でプロトタイプ アプリを試しています。私の SlidingPaneLayout はグレーで、ボディ ビューは真っ白です。しかし、スライドすると、本文ページの小さな可視領域がわずかに暗くなるか、暗いスクリーニングが重なって表示されます。私が欲しいのは、そのボディビューの純粋な元の白い色です。
これらをオフにする方法をいくつか試しましたが、不可能のようです。そのような
SlidingPaneLayout sp = (SlidingPaneLayout) findViewById(R.id.mainSlider);
sp.setHorizontalFadingEdgeEnabled(false);
またはXMLの次のプロパティ
<android.support.v4.widget.SlidingPaneLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/mainSlider"
android:requiresFadingEdge="none" <!-- try one -->
android:fadingEdgeLength="0dp" <!-- try two -->
android:fadingEdge="none" <!-- try three -->
tools:context=".MainActivity">
これを成功させたことがありますか?