Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, spending 3 days with same problem I found the exact procedure for this thing. The guide on <a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow noreferrer">github</a> is of-course not for entry level guys like us, also there is no such a "step-by-step tutorial" for this, so it took time.</p> <p>Important: I didn't include "<code>Sherlock ActionBar</code>" library, because I want to keep it simple</p> <ul> <li><p>First up all update your eclipse to latest <code>ADT</code> or best way you can download <a href="http://developer.android.com/sdk/index.html" rel="nofollow noreferrer">this</a> <code>ADT Bundle</code>, and confirm that everything is running fine in new <code>ADTBundle</code>.</p></li> <li><p>Download latest "<a href="https://github.com/jfeinstein10/SlidingMenu/archive/master.zip" rel="nofollow noreferrer">zip for jfeinstein10 / SlidingMenu</a>" from "<a href="https://github.com/jfeinstein10/SlidingMenu" rel="nofollow noreferrer">gitHub</a>", And extract it anywhere you want. After extraction it must have these files and folders inside.</p></li> </ul> <p><img src="https://i.stack.imgur.com/vYtMJ.png" alt="Folder after extracting library"></p> <ul> <li>Now open your eclipse <code>File -&gt; Import -&gt; Android -&gt; Existing Android Code Into Workspace</code>, Browse to your folder most probably "<code>SlidingMenu-master</code>" and you should see following </li> </ul> <p><img src="https://i.stack.imgur.com/SPSAd.png" alt="enter image description here"></p> <p>Hit <code>Finish</code>, If eclipse shows some error like <code>Unable to resolve target</code> then change your target through <code>Right Click on project -&gt; Properties -&gt; Android</code> and check any latest <code>google API</code> your SDK have.</p> <ul> <li><p>Add <code>Dependency</code>, by right clicking on <code>project -&gt; properties -&gt; android -&gt; library -&gt; add -&gt; SlidingMenuActivity</code>, and clear both projects.</p></li> <li><p>Add new XML layout named as <code>menu_frame</code> in your <code>res -&gt; layout</code> and put following in it Put <code>Frame Layout</code> and <code>list view</code> in it.</p></li> <li><p>Also add a <code>ListView</code> in your <code>mainActivity</code> XML file.</p></li> <li><p>Now it is time to create "Menu" write following code in your <code>onCreate()</code> after <code>setContentView(R.layout.activity_main)</code>.</p> <pre><code>SlidingMenu menu; menu = new SlidingMenu(this); menu.setMode(SlidingMenu.LEFT); menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setShadowWidth(5); menu.setFadeDegree(0.0f); menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT); menu.setBehindWidth(200); menu.setMenu(R.layout.menu_frame); </code></pre></li> <li><p>At the lines it is showing error press <code>ctrl+1</code> and import <code>com.slidingmenu.lib.SlidingMenu;</code>"</p></li> <li><p>Run your project and you should see menu coming out from left side</p></li> <li><p>Now the next task is to add <code>adapter</code> and <code>listener</code> for both of your ListViews (i.e for Main-screen and Menu).</p></li> </ul> <p>For information about function used while creating Menu you can refer to example apps provided with library or google them, there is lot of info available.</p> <p>Also thanks to "Jeremy Feinstein" for such a great library</p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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