B4J Question [ABMaterial] ABMTable's row height

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi, anybody know how to change ABMTable's row height ?:rolleyes:
 

Harris

Expert
Licensed User
Longtime User
Row height is roughly based on the largest component used in the cell...
Adjust font of the label to make row larger or smaller...


https://www.b4x.com/android/forum/threads/abmaterial-for-dummies-beginner-lessons.88346/#post-561010

The example shows how circular images have a larger row height as opposed to the square images.


B4X:
'  Notice how some images are round and larger than others....
            ' the "var" contains the image name...
            If tblFields.GetKeyAt(j) = "s1" Then
                    Try
                        Dim img As ABMImage
                        img.Initialize(page , "img"&j ,"../images/dumb/"&var, 1.0)

                        If i Mod 2 = 0 Then
                           img.IsCircular = True
                           img.SetFixedSize( 150,130)
                          
                        Else
                           img.SetFixedSize( 100,80)
                           img.IsCircular = False
                        End If   
                              
                        rCellValues.Add(img)
                        rCellThemes.Add("nocolor")
                    Catch
                        rCellValues.Add("No Photo Assigned")
                        rCellThemes.Add("nocolor")
                    End Try
                    Continue
            End If
 
Upvote 0
Top