Error setonclickListener undefined for the type button

view story

http://stackoverflow.com – Hello i'm getting the error: the method setonclickListener(new onclickListener(){}) is undefined for the type button Here's my code: public class Sliding extends Activity { /** Called when the activity is first created. */ private LinearLayout MenuList; private Button btnToggleMenuList; private int screenWidth; private boolean isExpanded; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sliding); MenuList = (LinearLayout) findViewById(R.id.linearLayout2); (HowTos)