Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SubhamKarmakar24 opened this issue Jul 29, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request Query HarmonyOS API/Functionality Query

Comments

@SubhamKarmakar24
Copy link

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 SubhamKarmakar24 added documentation Improvements or additions to documentation Query HarmonyOS API/Functionality Query labels Jul 29, 2021
@kanaksony kanaksony added the enhancement New feature or request label Aug 17, 2021
@kanaksony
Copy link
Contributor

@sharathks84 Can you please confirm if this is supported or the team is working on it?

@kanaksony kanaksony assigned sharathks84 and unassigned kanaksony Aug 17, 2021
@sharathks84
Copy link
Collaborator

as of today TextShaders are not present. I will get more info on this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request Query HarmonyOS API/Functionality Query
Projects
None yet
Development

No branches or pull requests

3 participants