Я хочу, чтобы три кнопки были одинаково расположены и одинакового размера. когда текст одной кнопки содержит более 3 слов (новая строка), кнопка опускается ниже, как показано на рисунке. Есть ли способ исправить то же самое, когда все три кнопки находятся в одной строке? Я пытался использовать TableLayout
/ Row
, но это не помогло.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/linearLayout1"
android:layout_alignParentBottom="true" android:layout_width="fill_parent"
android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android">
<Button android:text="Trade"
android:layout_weight="1" android:layout_height="wrap_content"
android:layout_width="0dip" ></Button>
<Button android:text="Set Alert"![enter image description here][2]
android:layout_weight="1" android:layout_height="wrap_content"
android:layout_width="0dip" ></Button>
<Button android:text="Add to watchlist"
android:layout_weight="1" android:layout_height="wrap_content"
android:layout_width="0dip"></Button>
</LinearLayout>