Tag

modifier

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Mobile Development

Understanding Jetpack Compose Layout Process: Composition, Measurement, and Modifier Nodes

Jetpack Compose’s layout process consists of three steps—measuring children, deciding the parent’s size, and placing children—driven by a MeasurePolicy that respects explicit Constraints, while Modifier nodes adjust those constraints and intrinsic measurements provide size hints, enabling efficient, declarative UI rendering.

Android UIJetpack ComposeKotlin
0 likes · 17 min read
Understanding Jetpack Compose Layout Process: Composition, Measurement, and Modifier Nodes
Sohu Tech Products
Sohu Tech Products
Aug 10, 2022 · Mobile Development

Understanding Jetpack Compose Layout Model and Custom Layout Techniques

This article explains Jetpack Compose's three‑stage layout model, dives into the internals of the Layout composable and Modifier system, and demonstrates how to create custom layouts both by implementing a MeasurePolicy in Layout() and by defining Modifier.layout extensions, complete with code examples.

Android UICustom LayoutJetpack Compose
0 likes · 15 min read
Understanding Jetpack Compose Layout Model and Custom Layout Techniques
Sohu Tech Products
Sohu Tech Products
Feb 16, 2022 · Mobile Development

Understanding the Implementation and Traversal of Modifier Chains in Jetpack Compose

This article explains how Jetpack Compose's Modifier interface is defined, how its concrete implementations such as SizeModifier, Background, Padding, CombinedModifier, and ComposedModifier form a chain, and how the foldIn and foldOut functions enable forward and reverse traversal of that chain for layout processing.

Jetpack ComposeKotlinMobile Development
0 likes · 14 min read
Understanding the Implementation and Traversal of Modifier Chains in Jetpack Compose
Hujiang Technology
Hujiang Technology
Jul 6, 2017 · Fundamentals

Kotlin Class Features: Constructors, Modifiers, and Special Classes

This article explains Kotlin class declarations, covering primary and secondary constructors, visibility modifiers, and special class types such as enums, sealed classes, and data classes, with code examples illustrating each concept.

Data ClassEnumKotlin
0 likes · 7 min read
Kotlin Class Features: Constructors, Modifiers, and Special Classes