Skip to content

Consider using separate builders for view type #2

Description

@rongi
val itemType1 = ViewTypeBuilder().itemType(1).view(R.layout.one).bind { view -> // bind to the view} 
 
val itemType2 = ViewTypeBuilder().itemType(2).view(R.layout.two).bind { view -> // bind to the view
 
Then the main builder can maybe take a list of this viewtypes e.g.
Klaster.get()
  .itemCount { articles.size }
  .viewTypes(listOf(itemType1, itemType2, etc, etc))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions