iOS Question ListView AddSingleLine and Customize it

Discussion in 'iOS Questions' started by Marco Maria Vilucchi, Jul 8, 2015.

  1. Marco Maria Vilucchi

    Marco Maria Vilucchi Active Member Licensed User

    Hi Erel,

    related to the Tutorial
    "B4i ListView"
    I have 2 questions

    1) how can i customize text/cell after your
    TableView1.AddSingleLine("Item #" & i)

    2) how can i customize text/cell for "First line"
    Dim tc As TableCell = TableView1.AddTwoLines("First line", "") 'the second line will be soon added

    Ths
    Marco
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Please see the forum guidelines: http://www.b4x.com/android/forum/threads/forum-guidelines.55632/

    1) Exactly like you did in the second case: Dim tc As TableCell = TableView1.AddSingleLine(..)
    Now you can modify tc as needed.

    2)
    Code:
    Dim s As AttributedString
    s.Initialize(
    "first line"Font.DEFAULT, Colors.Black)
    tc.Text = s
     
Loading...