Ok, i have two buttons in linear layout:
These is the example for equal size buttons for side by side can be done from above code
android:layout_weight
is used to assign space for buttons or whatever of equal amount for every child of LinearLayout.
Note: It works only on linear layout.