B4J Question Changing the RowHeight in a Tableview

AKJammer

Active Member
Licensed User
I've been able to do a few things with Java Objects, but this one seems to escape me. If I have TableView tv1, how do I change all the row heights to a specific number, say 30px. I've seen some examples for B4I, but I'm strictly using B4J.

Even changing the font, the default is leaving too much white space as I will be trying to print the tableview to a label. (Which will be the next question after this one is answered)

Thanks,
Jim
 

Daestrum

Expert
Licensed User
Longtime User
Uses JavaObject Library
B4X:
 ...
 asJO(TableView1).RunMethod("setFixedCellSize",Array(100.0))
End Sub
Sub asJO(o As JavaObject) As JavaObject
 Return o
End Sub
 
Upvote 0

AKJammer

Active Member
Licensed User
That was perfect. Thanks guys. I was close, but this worked.
Now I'll start the second thread for printing this thing.

Later,
Jim
 
Upvote 0
Top