https://kotlinlang.org logo
e

edvin

04/13/2017, 9:16 PM
@borboss I would probably have used scopes and injected a ViewModel that described the column, or it could even contain a function to add the columns you want. You could also consider using subclassing. Have a base class with all the common columns (if any) and subclasses with the specific columns.