Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid jfeinstein10/SlidingMenu Layout Error
    text
    copied!<p>I'm using <a href="https://github.com/jfeinstein10/SlidingMenu/" rel="nofollow">jfeinstein10/SlidingMenu</a>...</p> <p>On the image below it's a screen capture of the error. Note that as I slide close the menu the menu contents shows on top of the content activity.</p> <p>I'm using the XML implementation:</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:orientation="vertical" &gt; &lt;com.slidingmenu.lib.SlidingMenu xmlns:sliding="http://schemas.android.com/apk/res-auto" android:id="@+id/slidingmenulayout" android:layout_width="fill_parent" android:layout_height="fill_parent" sliding:viewAbove="@layout/activity_start" sliding:viewBehind="@layout/activity_menu" sliding:touchModeAbove="fullscreen" sliding:behindScrollScale="@dimen/behind_scroll_scale" sliding:behindOffset="@dimen/behind_offset" sliding:shadowDrawable="@drawable/shadow" sliding:shadowWidth="@dimen/shadow_width" sliding:selectorEnabled="true" /&gt; &lt;/LinearLayout&gt; </code></pre> <p>@layout/activity_menu:</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"&gt; &lt;ListView android:id="@+id/list_menu" android:layout_width="fill_parent" android:layout_height="fill_parent" &gt; &lt;/ListView&gt; &lt;/FrameLayout&gt; </code></pre> <p>Main_Activity.java:</p> <pre><code>public class MainActivity extends SherlockActivity{ private SlidingMenu menu; private ActionBar action; private ListView listView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); MenuClass menu_data[] = populateMenuData(); MenuAdapter adapter = new MenuAdapter(this, R.layout.listview_row_item, menu_data); listView = (ListView)findViewById(R.id.list_menu); listView.setAdapter(adapter); menu = (SlidingMenu) findViewById(R.id.slidingmenulayout); menu.setFadeEnabled(true); menu.setFadeDegree(0.35f); action = getSupportActionBar(); action.setDisplayHomeAsUpEnabled(true); menu.setBehindCanvasTransformer(new CanvasTransformer() { @Override public void transformCanvas(Canvas canvas, float percentOpen) { float scale = (float) (percentOpen * 0.25 + 0.75); canvas.scale(scale, scale, canvas.getWidth() / 2, canvas.getHeight() / 2); } }); } </code></pre> <p>Can anyone help me with it or tell me what I'm doing wrong??</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