Christian Steuer
Christian Steuer

Reputation: 139

android - sliding menu start Activity on Item Click

In my App i implemented the SlidingMenu Library by jfeinstein10. Everything works fine (official example app) but i dont know how to set an action to an item on the list (slide menu). I want to start another Activity on item click. Can someone give me a little example how to do that please ?

Upvotes: 2

Views: 1788

Answers (1)

SweetWisher ツ
SweetWisher ツ

Reputation: 7306

As I understood, you want to start activity on item click of the menu.

So write item click listener for sliding menu :

list.setOnItemClickListener( new OnItemClickListener() {
    public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
        Intent intent =  new Intent(this,next_activity.class);
        startActivity(intent);
    });
}

Upvotes: 2

Related Questions