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

alt text

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

alt text

    1 answer 1

    There were similar problems. Obviously, you are not using the layout_weight parameter. Here is a wonderful link by which you will understand the "weights" (it also helped me). You need to set the same weights for both buttons by 1.

    • Cool! I think it will help. I write with the help of java-code, and not through xml, really. But this should not prevent :) - angry
    • one
      Generally speaking, it is better to put it in xml in xml, since it will be easier for you. In addition, using the ADT plug-in in Eclipse, you can quickly prototype an interface by looking at how it will look. - DroidAlex
    • Yes, the xml is better and clearer ... - Leshij_2005