synth-android icon indicating copy to clipboard operation
synth-android copied to clipboard

Change Shadow Color

Open bhumikash-tech opened this issue 3 years ago • 1 comments

I just want to know is there any way to change the color of Shadow in Elevated/Pit Views or in SynthButtons /SynthImageButtons????

Please reply this issue.....

bhumikash-tech avatar Oct 29 '21 08:10 bhumikash-tech

issue happening with elevated view, i created a complete style reference as per documentation, here is my code,

<style name="Theme.MyApp.ElevatedView"> <item name="neuLightShadowColor">@color/synth_light_shadow_color_light</item> <item name="neuDarkShadowColor">@color/synth_dark_shadow_light</item> <item name="neuFillStartColor">@color/synth_light</item> <item name="neuFillEndColor">@color/synth_light</item> <item name="neuBorderStartColor">@color/synth_light</item> <item name="neuBorderEndColor">@color/synth_light</item> </style>

<club.cred.synth.views.ElevatedView android:layout_width="0dp" android:layout_height="0dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:neuCornerRadius="@dimen/pit_corner_radius" app:neuPlatformAppearance="@style/Theme.MyApp.ElevatedView" app:neuShadowOffset="2dp" />

but elevated view's appearance is not changing

vishalzende7 avatar Nov 20 '21 01:11 vishalzende7