HarmonyOS-Knowledgebase icon indicating copy to clipboard operation
HarmonyOS-Knowledgebase copied to clipboard

What is the alternative in Harmony OS for shadow in TextView (Android)?

Open SubhamKarmakar24 opened this issue 3 years ago • 2 comments

Describe the query

I am writing a custom component that displays text on the screen using JAVA SDK. I want to set a shadow on the text that this component renders like setting shadowRadius, shadowColor, shadowDx, shadowDy and also get these values that have been set.

In Android, we have setShadowLayer(float, float, float, int), getShadowColor(), getShadowDx(), getShadowDy() and getShadowRadius() method in TextView which does that for us.

What is the alternative for the above in Harmony OS?

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

https://stackoverflow.com/questions/68569973/what-is-the-alternative-in-harmony-os-for-shadow-in-textview-android

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

Regards, Subham

SubhamKarmakar24 avatar Jul 29 '21 04:07 SubhamKarmakar24