android-start a new line between to radio button -
i try start new line comment "here". try didn't succeed. can't choose "android:orientation="horizontal" because have component , doesn't work well.
<tablelayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/tablelayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_gravity="right" android:background="@drawable/back" android:icon="@drawable/logo" > <tablerow android:id="@+id/radio_hot_or_cold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginright="14.5sp" android:gravity="right" android:orientation="horizontal" //not android:padding="5dip" android:visibility="gone" > <radiogroup android:id="@+id/radiogroup_consume" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_below="@+id/radio_consume" android:orientation="horizontal" //not > <edittext android:id="@+id/edit_message_hot" android:layout_marginright="10.5sp" android:inputtype="numberdecimal" android:minems="2" android:minwidth="15sp" > </edittext> <textview android:text="צריכה בחום" /> <radiobutton android:id="@+id/radio0" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" android:text="" /> //////////////here want new line <edittext android:id="@+id/edit_message_cold" android:layout_marginright="10.5sp" android:inputtype="numberdecimal" android:minems="2" android:minwidth="15sp" > </edittext> <textview android:text="צריכה בקור" /> <radiobutton android:id="@+id/radio1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /> </radiogroup> </tablerow> ................ </tablelayout>
i can't choose "android:orientation="horizontal" because have component , doesn't work well.
try adding android:paddingtop="##dp"
edittext
or android:paddingbottom="##dp"
radiobutton
.
edit: doing this:
<radiobutton android:id="@+id/radio0" android:layout_width="wrap_content" android:layout_height="wrap_content" android:checked="true" android:text="" /> </tablerow> <tablerow> <edittext android:id="@+id/edit_message_cold" android:layout_marginright="10.5sp" android:inputtype="numberdecimal" android:minems="2" android:minwidth="15sp" > </edittext> <textview android:text="צריכה בקור" /> <radiobutton android:id="@+id/radio1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="" /> </radiogroup> </tablerow>
Comments
Post a Comment