SuavePirate / MaterialButton

A better material design button for Xamarin.Forms (Android and iOS)
MIT License
6 stars 6 forks source link

MaterialButton Shadow is limited in size for android button #2

Open saboehnke opened 6 years ago

saboehnke commented 6 years ago

I am implementing this and my android button seems to have a limit on how big the shadow can get under the button. I am wanting to have the button elevated pretty far. Is there a way to fix this so I can elevate it further without the shadow size being limited with your implementation?

SuavePirate commented 6 years ago

This implementation for Android uses the underlying Elevation properties of the button with the extra app compat which is the limitation of the shadow. As the control is elevated, the shadow becomes lighter against it's background which is why it seems small - it won't remain as dark.

saboehnke commented 6 years ago

I have gone as far as setting the elevation to 80 and the shadow is still dark but is cut off clean around the edges like it is not allowed to get past a certain size.

SuavePirate commented 6 years ago

Oh, okay I understand now. The issue might be in the limitation of Xamarin.Forms since the shadow cut off is due to the parent layout cutting it off (this can happen in Native Android as well, but there is a property you can set to stop the parent from clipping child layout layers). I'm not sure what the solution would be right now, but I can try to look into it.