i need help on how to make fixed textview size in table layout.
say if the text on it exceeds its size, i want the text on it to go to next line, and other textviews’ height on the same row will get stretched as well.
i’m using layout_weight to determine the size of textview, but problems come when the text on it exceeds its size. the table layout will become all messed up.
i’m trying to use ‘dp’ to make the size fixed, but i’m afraid the size will not fit the size of larger screen.
can anyone help on this? thanks in advance.
i’m using a scrollview on other rows but header row.
edit : changed the description, what i want is the text will go to next line if the text is too long and other textviews on same row will get stretched as well.
You can use
android:stretchColumnsproperty for table-layout. so it will stretch your column and then in the child views of the table-row you can set the weight so that you can make all column with same width.Here is a sample code.