# Better Custom Views with Delegates

DevFeed: [Better Custom Views with Delegates](<https://devfeed.tech/articles/better-custom-views-with-delegates-27044.md>)

Original publisher: [Read original article](<https://web.archive.org/web/20210621155927/https://blog.autsoft.hu/better-custom-views-with-delegates/>)

Author: Márton Braun

Published: 2019-10-17T14:00:00Z

Content type: tutorial

Language: en

Sources: [zsmb.co](<https://devfeed.tech/sources/zsmb-co.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [code](<https://devfeed.tech/tags/code.md>), [components](<https://devfeed.tech/tags/components.md>), [delegates](<https://devfeed.tech/tags/delegates.md>), [design](<https://devfeed.tech/tags/design.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>)

## AI overview

This tutorial explains how to implement reusable custom UI components using Kotlin delegates. It uses a customizable card component as an example and discusses optional content, adaptive layout, built-in margins, XML layouts, and providing an easy-to-use API.

## Source excerpt

Reusable UI components are all the rage these days. In this article, we'll take a look at implementing custom components easily by using Kotlin's delegates.