This repository provides a collection of runnable code samples that demonstrate best practices for building Android user interfaces across a wide range of devices and scenarios. The samples cover the full spectrum of modern Android UI patterns, from adaptive layouts that automatically adjust to large screens and foldable devices to interactive home screen widgets and conversation-style notifications.
The samples explore key capability areas including adaptive layouts powered by window size classes, foldable screen adaptation with hinge state handling, and declarative UI construction using Compose. They also demonstrate notification integrations such as conversation channels, bubbles, and direct share targets, as well as haptic feedback design that synchronizes vibration patterns with visual animations. Keyboard-aware UI components, rich text rendering with hyphenation and emoji support, and dynamic shortcut management are also covered.
Additional topics include settings screen composition, splash screen customization, immersive mode, on-demand font loading, drag-and-drop interactions, custom quick settings tiles, and widget pin-to-home-screen functionality. The project is written in Kotlin and is organized into runnable demos that developers can inspect and adapt for their own applications.