harmony 鸿蒙Introduction to Text
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.
Component | Use Case |
---|---|
Text: Text, Span | Used 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, TextArea | Facilitates user text input. Choose TextInput for single-line input and TextArea for multi-line input. |
Rich text: RichEditor | Designed for rich text editing, including the insertion of images and custom icons. |
Symbols: SymbolGlyph, SymbolSpan | Used to display small symbolic representations. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)
harmony 鸿蒙Arc Button (ArcButton)
harmony 鸿蒙Frame Animation (ohos.animator)
harmony 鸿蒙Implementing Property Animation
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦