ExamGecko
Question list
Search
Search

Related questions











Question 361 - H14-231_V1.0 discussion

Report
Export

If a developer uses custom components when developing a HarmonyOS application, what are the correct descriptions of custom components below?

A.
Add tag elements such as styleable and item to values/attrs.xml
Answers
A.
Add tag elements such as styleable and item to values/attrs.xml
B.
In the constructor with the AttrSet parameter of the custom component, use attrSet.getAttr('XxX').get().getStringValue() to get the property
Answers
B.
In the constructor with the AttrSet parameter of the custom component, use attrSet.getAttr('XxX').get().getStringValue() to get the property
C.
Add xmlns:app='http://schemas.huawei.com/apk/ res/ohos' to the layout.xml of the component definition
Answers
C.
Add xmlns:app='http://schemas.huawei.com/apk/ res/ohos' to the layout.xml of the component definition
D.
In the constructor of the custom component, call array.getlntegor(ResourceManager.styleab1e.***,100) to get the property
Answers
D.
In the constructor of the custom component, call array.getlntegor(ResourceManager.styleab1e.***,100) to get the property
Suggested answer: A, B, C, D
asked 18/09/2024
SoftwareONE Deutschland GmbH
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first