edvin
11/23/2016, 3:39 PMedvin
11/23/2016, 4:05 PMedvin
11/23/2016, 4:06 PMedvin
11/23/2016, 4:08 PMedvin
11/23/2016, 4:09 PMedvin
11/23/2016, 4:12 PMedvin
11/23/2016, 4:12 PMthomasnield
11/23/2016, 4:46 PMedvin
11/23/2016, 6:19 PMLib.kt
is a good place to put them.edvin
11/23/2016, 6:35 PMedvin
11/23/2016, 6:36 PMedvin
11/23/2016, 6:39 PMedvin
11/23/2016, 6:48 PMcellFormat
much less resource hungry. Basically, for many cells you don't need to recreate the nodes on each updateItem
call. For this example here, we only need to set the graphic once, and never touch it again. This can be achieved by only creating a new textfield if graphic
is null.edvin
11/23/2016, 6:48 PMedvin
11/23/2016, 6:49 PMedvin
11/23/2016, 6:57 PMedvin
11/23/2016, 6:57 PMedvin
11/23/2016, 6:57 PMedvin
11/23/2016, 6:59 PMassignIfNull
?ron
11/23/2016, 7:15 PMron
11/23/2016, 7:15 PMassignWhenNull
?thomasnield
11/23/2016, 8:32 PMedvin
11/23/2016, 8:52 PMwhen
might imply that it will be assigned to that value whenever it becomes null, while if
implies it will only happen if that is the case right now IMO.edvin
11/23/2016, 8:53 PMron
11/23/2016, 8:53 PMron
11/23/2016, 8:53 PMron
11/23/2016, 8:53 PMedvin
11/23/2016, 8:54 PMron
11/23/2016, 8:54 PM