title: SlidingPaneLayout background color
body: <p>I am using <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">SlidingUpPanel</a>. Everything works great. :) What I would like to achieve is change the background color of the panel in the image to transparent so that it shows the part of the image behind it. I tried setting background color of the SLidingPaneLayout to transparent but it doesn't work. When I change the color to something else like red, it shows red but doesn't happen the same with transparent.</p>
  
  <p>I also tried setting window background to transparent but it leaves a black background.</p>
  
  <pre><code>Window window = this.getWindow();
  window.setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
  </code></pre>
  
  <p>Please help.</p>
  
  <p><img src="https://i.stack.imgur.com/95R9i.png" alt="enter image description here"></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;com.app.custom.SlidingUpPanelLayout     xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:blurView="http://schemas.android.com/tools"
  xmlns:sothree="http://schemas.android.com/apk/res-auto"
  android:id="@+id/sliding_layout"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:gravity="bottom"
  sothree:umanoDragView="@+id/dragView"
  sothree:umanoPanelHeight="110dp"
  sothree:umanoParalaxOffset="0dp"
  sothree:umanoShadowHeight="0dp"&gt;
  
  &lt;!-- MAIN CONTENT --&gt;
  
  
  &lt;FrameLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;ImageView
          android:id="@+id/imgProfileLarge"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:contentDescription="@null"
          android:scaleType="centerCrop"
          android:src="@drawable/profile" /&gt;
  
      &lt;RelativeLayout
          android:id="@+id/layoutDetails"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
          android:visibility="gone"&gt;
  
  
          &lt;com.app.custom.UnscrollableViewPager
              android:id="@+id/facesPager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_alignParentTop="true" /&gt;
  
  
          &lt;com.app.custom.CirclePageIndicator
              android:id="@+id/indicator"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_centerInParent="true"
              android:layout_gravity="center_horizontal"
              android:layout_marginBottom="10dp"
              android:padding="10dp" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/FrameLayout&gt;
  
  
  &lt;!-- SLIDING LAYOUT --&gt;
  
  &lt;com.app.custom.FrameLayoutWithBluredBackground
      android:id="@+id/dragView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:clickable="true"
      android:focusable="false"
      blurView:blurRadius="20"&gt;
  
  
      &lt;ViewFlipper
          android:id="@+id/mViewFlipper"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;include
              android:id="@+id/layoutImages"
              layout="@layout/layout_faces_thumb" /&gt;
  
  
          &lt;LinearLayout
              android:id="@+id/layoutMore"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"&gt;
  
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="100dp"
                  android:orientation="horizontal"&gt;
  
                  &lt;TextView
                      android:id="@+id/name"
                      android:layout_width="0dp"
                      android:layout_height="match_parent"
                      android:layout_weight="1"
                      android:gravity="center_vertical"
                      android:paddingLeft="10dp"
                      android:textSize="14sp" /&gt;
  
                  &lt;Button
                      android:id="@+id/follow"
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:gravity="center_vertical|right"
                      android:paddingLeft="10dp"
                      android:paddingRight="10dp"
                      android:textSize="14sp" /&gt;
  
              &lt;/LinearLayout&gt;
  
              &lt;ImageView
                  android:id="@+id/imgClickMe"
                  android:layout_width="match_parent"
                  android:layout_height="150dp"
                  android:scaleType="fitStart"
                  android:src="@drawable/graphic" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/ViewFlipper&gt;
  &lt;/com.app.custom.FrameLayoutWithBluredBackground&gt;
  </code></pre>
  
  <p></p>