Is have any method when press action bar icon can slide menu
<p>Is have any method when press action bar icon can slide menu? I am not sure is need to use imageview? because I want use action bar icon.
Because I don't want use "extend fragment".</p>

<p>If have any one can give me some advice? I can't solve this problem. </p>

<p><a href="https://i.stack.imgur.com/LGGFp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LGGFp.jpg" alt="enter image description here"></a></p>

<pre><code>public class MainActivity extends Activity {
private String[] SlideListViewItems;
private ListView drawerListView;
DrawerLayout drawer;
Activity context;

private static final String TAG = "MainActivity.java";
private ListView listView;
String outPut;
 protected void onCreate(Bundle savedInstanceState) {

     super.onCreate(savedInstanceState);

  ActionBar actionBar = getActionBar();

getActionBar().setIcon(R.drawable.slidemenu);


     context=this;
     setContentView(R.layout.activity_main);
       // get slide list items from strings.xml      
     SlideListViewItems = getResources().getStringArray(R.array.titles);
        //get ListView defined in activity_main.xml
    drawerListView = (ListView) findViewById(R.id.left_slide); 
         //Set item click listener to slide list
    drawerListView.setOnItemClickListener(new SlideItemAction());
          //Set the adapter for the list view
    drawerListView.setAdapter(new CustomAdapter(this, R.layout.list_item, R.id.title, SlideListViewItems)); 

    listView = (ListView) findViewById(R.id.listView1);
       accessWebService();
 listView.setOnItemClickListener(new ListClickHandler());

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {

    getMenuInflater().inflate(R.menu.main, menu);

    return true;
}


private class SlideItemAction implements OnItemClickListener{

    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
         Toast.makeText(getApplicationContext(), "draw", Toast.LENGTH_SHORT).show();        
            ViewGroup vg=(ViewGroup)view;
            TextView txt=(TextView)vg.findViewById(R.id.title);
            //show selected item
            Toast.makeText(context, txt.getText().toString(), Toast.LENGTH_LONG).show();
            Log.v(TAG, txt.getText().toString());
   }
}
</code></pre>