ForEach: Rendering Repeated Content ForEach enables array-based rendering of repeated content. It must be used in a container component, and the component it returns must be one allowed inside the con
阅读全文
openharmony 鸿蒙 arkts-rendering-control-lazyforeach
LazyForEach: Lazy Data Loading Overview LazyForEach, supported since API version 7, enables dynamic rendering of child components from a data source. It iterates through the data source on demand, cre
阅读全文
openharmony 鸿蒙 arkts-rendering-control-contentslot
ContentSlot: Enabling Hybrid Development The ContentSlot component enables rendering and management of components created using C APIs on the native layer. With support for development in blend mode,
阅读全文
openharmony 鸿蒙 arkts-rendering-control-overview
Rendering Control Overview ArkUI leverages two primary approaches for building UIs: the build() function of custom components and declarative UI description statements in the @Builder decorator. In de
阅读全文
openharmony 鸿蒙 arkts-wrong-uicontext-debug
UI Context Debugging This section describes how to resolve text display abnormalities caused by invalid UIContext. Using an invalid UIContext object (typically resulting from destruction of the corres
阅读全文
openharmony 鸿蒙 arkts-dialog-focusable
Dialog Box Focus Policy The focus strategy of ArkUI dialog boxes can be configured to determine whether to interrupt the user's current operation and shift focus to the newly opened dialog box. If the
阅读全文
openharmony 鸿蒙 arkts-isolated-components-sys
Cross-Thread Embedded Component (IsolatedComponent, for System Applications Only) The IsolatedComponent is a tool for building isolated components, enabling you to create independent and reusable comp
阅读全文
openharmony 鸿蒙 arkts-layout-debug
Debugging UI Display Exceptions This topic outlines effective methods for identifying and resolving UI display exceptions, illustrated with practical case studies. Identifying UI Display Exceptions UI
阅读全文
openharmony 鸿蒙 ndk-add-component-events
Adding an Event Listener NDK APIs provide the event listening capability for components. This section describes how to listen for component events, layout and drawing events, and light/dark mode chang
阅读全文
openharmony 鸿蒙 arkts-user-defined-composition
Custom Composition Overview Custom composition provides component-level customization capabilities, allowing you to create advanced components with service logic by combining existing components. Duri
阅读全文