Emboss effect for a LinearLayout in android
-
25-06-2021 - |
Question
I have a textview and imageview inside horizontal linearlayout which has blue color as its background. How can i add Emboss effect for the lineatlayout? Please help me
Solution
Android does provide some feature for creating an Emboss Effect by using EmbossMaskFilter..
For more details, you can visit this link: http://android-coding.blogspot.in/2012/05/example-of-embossmaskfilter.html
Also if you need to apply this effect for 2D-graphics, then you can use this link: http://about-android.blogspot.in/2010/07/2d-graphics-with-effects_11.html
OTHER TIPS
I would suggest making a 9 patch with the emboss built into the image.
That way you can make the size and colour whatever you want.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow