java - How to change/resize EditText in table layout? -
i want resize edittext matches texts. when insert edittext in table layout in column 3 fills whole space of column 3 , looks big. want change size. how possible? below .xml coding:
<tablerow> <textview android:layout_column="1" android:text="s" android:layout_width="150dp" /> <textview android:layout_column="2" android:text="c" android:layout_width="75dp" /> <textview android:layout_column="3" android:text="g"/> </tablerow> <view android:layout_height="2dip" android:background="#ff909090" /> <tablerow> <textview android:layout_column="1" android:id="@+id/s1" android:text="medium text"/> <textview android:layout_column="2" android:id="@+id/c1" android:text="text"/> <edittext android:id="@+id/g1" android:layout_column="3" /> </tablerow>
i understand problem... tried using wrap_content etc .. didnt work have manually set height of edittext.... here's code:
<?xml version="1.0" encoding="utf-8"?> <tablerow android:id="@+id/tablerow2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightsum="3" > <textview android:id="@+id/textview2" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:text="textview" /> <textview android:id="@+id/textview5" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1" android:text="textview" /> <edittext android:id="@+id/edittext1" android:layout_width="fill_parent" android:layout_height="15dp" android:layout_weight="1" /> </tablerow>
Comments
Post a Comment