B4X:
Dim tcContract As TableCell=tvContracts.AddSingleLine("")
tcContract.ShowSelection=False
tcContract.Tag=""
tcContract.CustomView=Createitem(sContractNumber)
Private Sub Createitem(sValue As String) As Panel
Dim oPanel As Panel
Dim lblData As Label
oPanel.Initialize("")
lblData.Initialize("data")
Dim oValueText As AttributedString
oValueText.Initialize(sValue,Font.CreateNew(30),Colors.Blue)
lblData.Text=sValue
lblData.Color=Colors.ARGB(255,176,224,230)
oPanel.Width=100%x
oPanel.Height=tvContracts.RowHeight
oPanel.AddView(lblData,0,0,100%x,tvContracts.RowHeight)
Return(oPanel)
End Sub
I can't see a way to change the label size without using designer. If I used designer, how would I layout the label so it does not take up the full screen on the tableview cell.
Last edited: