openharmony 鸿蒙 arkts-text-introduction

2025-06-12 浏览 (1)

Introduction to Text

Text plays a vital role in the UI, encompassing both the information entered by users and the textual content or symbols displayed to them. The text elements collaborate to bridge the interaction between users and the system, enhancing ease of operation and providing clear information presentation.

For page development, select from the text components below based on your specific requirements.

ComponentUse Case
Text: Text, SpanUsed to display static text. Use the Text component for straightforward text display, or combine it with Span for more complex text layouts. Alternatively, craft text using StyledString or MutableStyledString and integrate it into the Text component.
Text input: TextInput, TextAreaFacilitates user text input. Choose TextInput for single-line input and TextArea for multi-line input.
Rich text: RichEditorDesigned for rich text editing, including the insertion of images and custom icons.
Symbols: SymbolGlyph, SymbolSpanUsed to display small symbolic representations.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkUI

harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)

harmony 鸿蒙Arc Button (ArcButton)

harmony 鸿蒙Animation Smoothing

harmony 鸿蒙Animation Overview

harmony 鸿蒙Frame Animation (ohos.animator)

harmony 鸿蒙Implementing Property Animation

harmony 鸿蒙Property Animation Overview

harmony 鸿蒙Dialog Box Overview

harmony 鸿蒙Blur Effect

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/Uj1Yig