B4J Question [ABMaterial] ABMTable's row height

Discussion in 'B4J Questions' started by jinyistudio, Jul 11, 2019.

  1. jinyistudio

    jinyistudio Active Member Licensed User

    Hi, anybody know how to change ABMTable's row height ?:rolleyes:
     
  2. Harris

    Harris Well-Known Member Licensed 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.


    Code:
    '  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
     
    jinyistudio and Johan Hormaza like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice