H14-231_V1-0 practice question 9 of 35

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

Full set: 699 questions
Answer options
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
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
Correct Answer:
ABCD
Scroll to Top