android - TableLayout formatting loss after device rotation -


I see a strange problem with Talikaleaut after being rotated to either side of the device, if you view a picture Or load in landscape mode, the table is fine. But once you rotate the device, the column will fit only its width. I hope after the rotation, the column will still stretch to fit the screen width. Any thoughts on what can be done to solve it? After the rotation

  & lt; TableLayout android: id = "@ + id / DataTable" Android: Layout_width = "Fill_parent" Android: Layout_height = "Fill_parent" Android: layout_weight = "1" Android: layout_below = "@ id / Chart" Android: Stretch column = "* "Android: Shrink Column =" * "Android: Padding =" 6dip "& gt; & Lt; / TableLayout & gt;  

table row:

  & lt; TableRow xmlns: android = "http://schemas.android.com/apk/res/android" Android: Layout_width = "fill_parent" Android: layout_height = "fill_parent" & gt; & Lt; TextView android: id = "@ + id / col1" Android: layout_marginRight = "2dip" Android: textColorLink = "# FF21759b" android: text = "Column 1" android: padding = "4dip" Android: textcolor = "# FF464646" /> & Lt; TextView Android: id = "@ + id / col2" Android: Text = "Column 2" Android: textcolor = "# FF464646" Android: padding = "4dip" /> & Lt; / TableRow & gt;  

Thanks!

I think it is right here


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -