Note that there are some explanatory texts on larger screens.

plurals
  1. POSliding Menu white space
    text
    copied!<p>I'm using jfeinstein10 Sliding Menu library in my project and everything works fine, is just that when I run my app on certain devices there is a white space in the top of the fragment that holds the listview, here is a pic:</p> <p><img src="https://i.stack.imgur.com/DV75Q.png" alt="enter image description here"></p> <p>Here is the code where I set up the sliding menu:</p> <pre><code> setBehindContentView(R.layout.menu_frame); FragmentTransaction fragTransaction = mFragmentManager.beginTransaction(); fragMenu = new FragmentMenu(); fragTransaction.replace(R.id.menu_frame, fragMenu); fragTransaction.commit(); SlidingMenu sm = getSlidingMenu(); sm.setShadowWidthRes(R.dimen.shadow_width); sm.setShadowDrawable(R.drawable.shadow); sm.setBehindOffsetRes(R.dimen.actionbar_home_width); setSlidingActionBarEnabled(true); final ActionBar mActionBar = getSupportActionBar(); mActionBar.setHomeButtonEnabled(true); mActionBar.setDisplayHomeAsUpEnabled(true); </code></pre> <p>And this would be the XML file of my fragment layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/fondoRowsMenuIzquierdo" &gt; &lt;ExpandableListView android:id="@+id/expListView" android:layout_width="match_parent" android:layout_height="match_parent" android:cacheColorHint="@color/fondoRowsMenuIzquierdo" android:childDivider="@color/fondoRowsChildMenuIzquierdo" android:choiceMode="singleChoice" android:divider="@color/separadoresMenuIzquierdo" android:dividerHeight="1dp" android:drawSelectorOnTop="true" android:groupIndicator="@null" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>Does anyone knows how to remove that white space?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload