tezvyn:

Android Custom Views: Beyond the Standard Library

Source: developer.android.comintermediate

A custom view gives you full control over a UI component's drawing and interaction. Use it for unique elements like charts or radial menus that standard widgets can't handle. The footgun is building one when composing existing views would be simpler.

A custom view lets you build any UI component you can imagine, giving you total control over its appearance and behavior. It's like designing your own LEGO brick. Use it for unique UIs like data visualizations or complex interactive controls that don't exist in the standard toolkit. The biggest mistake is over-engineering; don't build one if composing existing views or using a custom Drawable would suffice.

Read the original → developer.android.com

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Android Custom Views: Beyond the Standard Library · Tezvyn