romario87027 Active Member Licensed User Longtime User Jan 21, 2014 #1 I can not understand how you can resize a TableView. Can you suggest something? thanks
giga Well-Known Member Licensed User Longtime User Jan 21, 2014 #2 Are you trying to resize width, height or both? You could look at this: http://www.b4x.com/android/forum/threads/tableview-height.36222/#post-212604 Last edited: Jan 21, 2014 Upvote 0
Are you trying to resize width, height or both? You could look at this: http://www.b4x.com/android/forum/threads/tableview-height.36222/#post-212604
romario87027 Active Member Licensed User Longtime User Jan 22, 2014 #3 I was looking for ... how to adapt the size of the screen Tableview. b4j tableview auto resize? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2014 #4 See the DBUtils example: http://www.b4x.com/android/forum/threads/dbutils-example.34611/#content It is done with anchors. Upvote 0
See the DBUtils example: http://www.b4x.com/android/forum/threads/dbutils-example.34611/#content It is done with anchors.
romario87027 Active Member Licensed User Longtime User Jan 22, 2014 #5 Thanks it was just what I was looking for Upvote 0
romario87027 Active Member Licensed User Longtime User Jan 22, 2014 #6 Code: Copy Sub TableView1_Resize(Width As Double, Height As Double) For i = 0 To TableView1.ColumnsCount - 1 TableView1.SetColumnWidth(i, (Width - 10dip)/ TableView1.ColumnsCount) Next End Sub On the test I do this event attracts up to reduce to a minimum the columns Attachments img1.jpg 52 KB · Views: 482 Upvote 0
Code: Copy Sub TableView1_Resize(Width As Double, Height As Double) For i = 0 To TableView1.ColumnsCount - 1 TableView1.SetColumnWidth(i, (Width - 10dip)/ TableView1.ColumnsCount) Next End Sub On the test I do this event attracts up to reduce to a minimum the columns
romario87027 Active Member Licensed User Longtime User Jan 22, 2014 #7 I solved it had not done well l'anchor.Everything Ok Thanks Upvote 0