I have an Activity (not a dialogue!). On which you want to place the components - TextView , EditView and two Button - as follows:

Tried to use LinearLayout , TableLayout in different combinations, set setMinimumWidth , etc. Nothing helped. Anyway, this is the layout:
