How to make a gradent constant-glow with gradient shadow button in android?
Asked Answered
C

1

6

I know this topic has been discussed before but I didn't find really what I am looking for.

I have those buttons (screenshot at the bottom). Now I want to add a constant outer glow. Is there another possibility to do this than saving it as .png in the drawable folder? That would make much less work. Thank you!

enter image description here

Coniology answered 11/9, 2019 at 4:32 Comment(5)
these are shadowsSheehan
Possible duplicate of How can I make an animated/constant glowing effect around button in android?Binary
No, there are just solid color shadow I want to gradient color shadowConiology
@Coniology Take a look at my answer. There you have different gradients for your shadow. Hope it can still help you :)Prompt
I found better solution here habr.com/ru/post/530376Coniology
P
0

I found a solution for that Button in your image. I combined a library with my own drawable and used a trick with a stroke to reach the Button you were searching for. Take a look at my main answer. I made the exact sample you wanted as a little Spoiler:

Result

Prompt answered 30/7, 2021 at 0:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.