目录

UI Development (ArkTS-based Declarative Development Paradigm) Overview

Powered by the ArkTS-based declarative development paradigm, ArkUI is a simplified, high-performance UI development framework for cross-device applications. It provides the capabilities required for building the application UI, including:

Highlights

Architecture

Figure 1 Overall architecture

Development Process

The table below lists the main tasks involved in UI development with ArkUI.

Task Description Guide
Get started with ArkTS Learn the basic syntax, state management, and rendering control scenarios of ArkTS.

- Basic Syntax Overview

- State Management

- Rendering Control

Set component navigation and page routing Set up navigation between components and implement page routing.

- Component Navigation (Recommended)

- Page Routing

Lay out components Implement your UI using common layout techniques. - Layout Overview
Use lists and grids Work with list and grid components. - List and Grid Overview
Use text Integrate and manage text components such as text boxes, rich text, and styled strings.

- Text Display

- Text Input

- Rich Text

- Symbol Glyph

- Styled String

Display media Show media content using media display components.

- Image Display (Image)

- Video Playback (Video)

- Creating a Swiper (Swiper)

- Creating an Arc Carousel Component (ArcSwiper)

Buttons and selections Describe how to use several commonly used button and selection components. - Button and Selection Component Overview
Add components Use the XComponent component for custom rendering and Progress indicators.

- Custom Rendering (XComponent)

- Progress Indicator (Progress)

Use popup windows Learn when and how to use popup windows.

- Dialog Box Overview

- Menu Overview

- Popup Overview

- Modal Page Overview

- Toast

- OverlayManager

Graph Drawing Understand how to draw custom geometry and make custom graphics on the canvas.

- Geometric Shape Drawing Overview

- Drawing Custom Graphics Using the Canvas

Implement interactions Implement interactions using basic mechanisms, input device events, and gesture response.

- Interaction Mechanism Overview

- Input Devices and Events

- Adding Gesture Response

Using animation Describes typical scenarios for using animations on components and pages.

- Property animation

- Transition animation

- Particle animation

- Component animation

- Animation curve

- Animation smoothing

- Motion blur

- Frame animation

Use customization capabilities Learn the basic concepts of customization capabilities and how to apply them.

- Custom Composition

- Custom Node

- Custom Extension

Implement UI internationalization Implement an internationalized application UI, including resource configuration and support for right-to-left (RTL) layouts. - Implementing UI Internationalization
Implement accessibility and aging-friendly support Implement accessibility features and aging-friendly adaptations.

- Accessibility supported

Supporting Aging-Friendly Design

Theme settings Describes theme setting capabilities at the application and page levels.

- Application dark/light color adaptation

- In-app theme skinning

Utilize UI contextual capabilities Use UIContext APIs to access instance-bound objects and launch atomic services in full-screen mode.

- Using the UI Context API for UI Operations

- Atomic Service Full Screen Launch Component

General Rules