When a developer develops a HarmomyOS application, if a Text component is used as the title bar of the page, and its width is set to match_parent and its height is set to 50vp, how can the text content in the Text be centered when setting its properties in the layout file?
- ohos:thorizontal_center=true"
- ohos:center_inparent="true"
- ohos:layout_alignment=center
- ohos:text_alignment=center
Reveal Solution Next Question