Huawei HCIP-HarmonyOS Application Developer V1.0 H14-231_V1.0 Question # 19 Topic 2 Discussion

Huawei HCIP-HarmonyOS Application Developer V1.0 H14-231_V1.0 Question # 19 Topic 2 Discussion

H14-231_V1.0 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

When a developer develops a HarmomyOSapplication, 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


Get Premium H14-231_V1.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.