Related questions
Question 123 - H14-231_V1.0 discussion
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?
A.
ohos:thorizontal_center=true'
B.
ohos:center_inparent='true'
C.
ohos:layout_alignment=center
D.
ohos:text_alignment=center
Your answer:
0 comments
Sorted by
Leave a comment first