Note that there are some explanatory texts on larger screens.

plurals
  1. POSliding Menu not opening on swipe
    primarykey
    data
    text
    <p>I am trying to use the <code>Sliding Menu</code> <a href="https://github.com/jfeinstein10/SlidingMenu/" rel="nofollow">Library</a> in my app but I am having a problem getting it to slide with my finger. I can get it to open if I call the <code>toggle()</code> method which I cann when the <code>home</code> icon is pressed or if I <code>slide my finger across the ActionBar</code> but if I slide my finger to open it where all the content is, nothing happens</p> <p>this is my activity</p> <pre><code>public class SmsActivity extends SlidingActivity { @Override public void onCreate(Bundle state){ super.onCreate(state); setContentView(R.layout.sms_layout); Intent i = getIntent(); view = i.getIntExtra("sms_view", 1); ActionBar bar = getActionBar(); bar.setDisplayHomeAsUpEnabled(true); bar.setIcon(R.drawable.menu_button); setBehindContentView(R.layout.sms_menu_layout); SlidingMenu menu = getSlidingMenu(); menu.setMode(SlidingMenu.LEFT); menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setShadowWidthRes(R.dimen.shadow_width); menu.setShadowDrawable(R.drawable.shadow); menu.setBehindOffsetRes(R.dimen.slidingmenu_offset); menu.setFadeDegree(0.35f); setSlidingActionBarEnabled(true); } </code></pre> <p>The menu should open up a <code>PreferenceFragment</code> and the content is just a <code>ListFragment</code></p> <p>here is the XML for that activity</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;fragment android:id="@+id/sms_frame" android:name="com.app.notifyme.Fragments.ContactListFragment" android:layout_width="match_parent" android:layout_height="match_parent"/&gt; &lt;/LinearLayout&gt; </code></pre> <p>I tried following the example and I dont see anything different from what I have so I dont know what I am doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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