Open MohamedHelmy95 opened 3 years ago
I want the same effect in my app, Did you find a solution?
Hello @akankshapaul048 the only way I got it working is by creating a MaterialShapeDrawable that draws the shape of the background I need and draws shadows also. more info here : https://medium.com/ackee/create-beautiful-shapes-with-materialshapedrawable-874dd46e0fd5
What kind of issue is this?
[x] Question. If you want to ask how to do something, or to understand why something isn't working the way you expect it to.
Info:
PinView version: Latest
Device OS version: Android 9
Device Name: Xaiomi Note 5
Description:
I want to add a shadow effect around single item
What did I do:
I created my own style inheriting from your default style
<style name="MyPinView" parent="PinWidget.PinView">
<item name="android:elevation">4dp</item>
<item name="android:translationZ">4dp</item>
<item name="elevation">4dp</item>
</style>
but it's not working