-
I am working on a HarmonyOs project in that I wanted to set the background color of the component. In Android we have a function setBackgroundColor() in the View class, this can be done as shown below…
-
### Describe the query
There are many arguments in my code which can take the value null. It would be helpful if there is a @Nullable and @NonNull annotation like the ones offered in Android via [A…
-
I wanted to change the font style of text component(dayTitle) to a custom font for my project. For setting a predefined font ex:- BOLD, Harmony OS platform allows the users to set the predefined fonts…
-
### Describe the query
Can anyone tell px:fp ratio or code to convert fp to px.
I am building a HarmonyOS application and I want to set the width of a component to 20fp and ```setWidth(int width)``…
-
### Describe the query
I am developing a Harmony application and I want to animate the Dialog window
this code is from android and this type of animation I want to add
```
Window dialogWindow = di…
-
### Describe the query
I am creating Harmony Application.
Here I am creating a common dialog and setting a custom component and using ```component.createAnimatorProperty()``` to create animator prop…
-
### Describe the query
I am developing a Harmony application where I want to create a popup dialog with a custom component.
I tried this
```
Component customComponent = LayoutScatter.getInstance(c…
-
### Describe the query
In my project, I have created a custom dialog inside which, I have a color palette that is initialized with a particular color(say Yellow) already checked. If I click on any co…
-
### Describe the query
Android uses TypedArray as a container for attribute values. Here is an example:
```
TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.EmojiReactionVi…
-
### Describe the query
I want to add an image inside the tab and I have Image Resource Id but ```tab.setIconElement(Element) ``` takes element.
currently, I am trying like this
```
tabList = (TabL…