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

UI Component Catalog for Android

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

UI Component Catalog for Android

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

Avatar for kazutoyo

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) } } } )) )) ) }