Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UI Component Catalog for Android

UI Component Catalog for Android

AndroidでUI Componentの一覧を表示をする

kazutoyo

March 27, 2019
Tweet

Other Decks in Programming

Transcript

  1. ComponentCatalogActivityΫϥεΛܧঝͯ͠ createCollections()Λ࣮૷͢Δ class TellerUIComponentCatalogActivity : ComponentCatalogActivity() { override fun createCollections():

    List<ComponentCatalogCategory> = listOf( ComponentCatalogCategory("Common", listOf( ComponentCatalogSubCategory("ϑΥϩʔϘλϯ", listOf( object : ComponentItem("ϑΥϩʔϘλϯʢະϑΥϩʔʣ") { override fun buildItem(): View { return FollowButton(this@TellerUIComponentCatalogActivity).apply { setIsFollowed(false) } } } )) )) ) }