I forget, is LinearLayout vertical or horizontal by default? If it is horizontal, then by setting theEditText's width to fill_parent you would be leaving no room for the button.
I'm sure if you search for "android linearlayout tutorial" or some such phrase you will find the answer very quickly. Or just read the javadocs of the LinearLayout class.