android - height not matching - buttons -
i want 3 buttons equally spaced , equally sized. when text of 1 of button more 3 words (new line), button drops below shown in picture. there way fix same in 3 buttons in same line? tried using tablelayout
/row
did not help.
<?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 watchlist" android:layout_weight="1" android:layout_height="wrap_content" android:layout_width="0dip"></button> </linearlayout>
i tried that, , works me when take above layout , set android:layout_height "fill_parent" on 3 buttons.
(though interesting issue, not sure why last button bit offset.)
Comments
Post a Comment