title: Sliding layout below status bar in Umano SlidingPanel
body: <p>I have implemented UmanoSlidingPanel using <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow">https://github.com/umano/AndroidSlidingUpPanel</a> . Everything is working fine except that my sliding panel when expanded, the sliding content (sliding_view) is going below the status bar. How can I avoid that?I tried removing  </p>
  
  <pre><code> &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt; 
  </code></pre>
  
  <p>from styles.xml but that makes the status bar non-tranlucent for the main content also. Any way to fix this?</p>
  
  <pre><code>&lt;com.sothree.slidinguppanel.SlidingUpPanelLayout 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/firstPanelDragArea"
      sothree:umanoPanelHeight="@dimen/bottom_panel_height"
      sothree:umanoShadowHeight="4dp"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include
              android:id="@+id/toolbar"
              layout="@layout/toolbar" /&gt;
  
          &lt;FrameLayout
              android:id="@+id/frame_container"
              android:layout_width="match_parent"
              android:layout_height="match_parent" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- SLIDING LAYOUT --&gt;
      &lt;LinearLayout
          android:id="@+id/firstPanelDragArea"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include layout="@layout/sliding_view" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>styles.xml</p>
  
  <pre><code> &lt;style name="AppTheme" parent="@style/Theme.AppCompat"&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:windowTranslucentNavigation"&gt;true&lt;/item&gt;
      &lt;item name="android:windowDrawsSystemBarBackgrounds"&gt;true&lt;/item&gt;
      &lt;item name="android:windowTranslucentStatus"&gt;true&lt;/item&gt;
      &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>  public void onPanelSlide(View panel, float slideOffset) {
                if (slideOffset &gt; 0.5 &amp;&amp; !flagTransparent) {
                  getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
                  getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
                  flagTransparent = true;
                  Log.i(TAG, "onPanelSlide, offset " + slideOffset);
              } else if (slideOffset &lt; 0.5 &amp;&amp; flagTransparent){
                  getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
                  getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
                  flagTransparent = false;
                  Log.i(TAG, "onPanelSlide, offset " + slideOffset);
    }
  </code></pre>