applibgroup / HarmonyOS-Knowledgebase

This repository contains code samples of HarmonyOS Training
Apache License 2.0
17 stars 6 forks source link

How to initialise RgbColor from ability_main.xml? #45

Closed shreyshrivastava4799 closed 3 years ago

shreyshrivastava4799 commented 3 years ago

Describe the query

I have a custom attribute of type RgbColor in my library, I wanted to know how can I initialise it to a specific color of my choice using ability_main.xml?

Create the query with harmonyos tag in stackoverflow and share the link here:

**** https://stackoverflow.com/questions/68589583/how-to-initialise-rgbcolor-from-ability-main-xml

Additional information

Developer Platform: Windows DevEco Studio version: 2.1.0.303 SDK API version: 5 SDK version: 2.1.1.21 Device: Not Required Device OS version: Not Required