Some additional way of doing things...
There are basically two ways to create a control in android (or any platform)
- Thru editor or Layout XML
- Thru code / Runtime / Dynamic
For creating in Layout XML, @Ashish Kumer Khanna's answer should help you.
For creating in Runtime, you could code something like this...
Button button1 = new Button(this);
button1.setText("I am Button");
LinearLayout layout = (LinearLayout)findViewById(R.id.mylayout);
LayoutParams layoutParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
layout.addView(button1, layoutParams);
Hope this helps!