12.10.2016, 03:19
Solution
Where you have the line "Pizza Boy\tSan Fierro\t%.02f" you will need to add a new line followed by the content you wish to add.
When using Dialogs and specifically the DIALOG_STYLE_LIST or DIALOG_STYLE_TABLIST_HEADERS, using \n means new line and a new line makes a new list item.
so to add on to what you had before you may use:
So what did I add? I added \n to the end of the line to tell the compiler that your working on a list item. Then you fill in each column followed by a \t to separate it.
Just a note: As you can see I put an extra \ at the end of each line, this tells the compiler to ignore the whitespace and continue to treat it as a string, without it if you tried to put content on a new line the compiler would error.
Where you have the line "Pizza Boy\tSan Fierro\t%.02f" you will need to add a new line followed by the content you wish to add.
When using Dialogs and specifically the DIALOG_STYLE_LIST or DIALOG_STYLE_TABLIST_HEADERS, using \n means new line and a new line makes a new list item.
so to add on to what you had before you may use:
Код:
"Job\tLocation\tDistance\n \ Pizza Boy\tSan Fierro\t%.02f\n \ Dish Washer\tLas Venturas\t%.02f", // Just an example
Just a note: As you can see I put an extra \ at the end of each line, this tells the compiler to ignore the whitespace and continue to treat it as a string, without it if you tried to put content on a new line the compiler would error.