muak / AiForms.Effects

AiForms.Effects for Xamarin.Forms
MIT License
245 stars 27 forks source link

Lower than Android 5.0 Crash #32

Closed Wenfengcheng closed 6 years ago

Wenfengcheng commented 6 years ago
BorderPlatformEffect.UpdateBorder ()
Java.Lang.IncompatibleClassChangeError: no method with name='setClipToOutline' signature='(Z)V' in class Lcom/xamarin/forms/platform/android/FormsViewGroup;

The ClipToOutline method is only available after Android 5.0.

muak commented 6 years ago

@Wenfengcheng

I'm sorry, This library is supported for more greater than or equal to Android 5.1. https://github.com/muak/AiForms.Effects#minimum-device-and-version-etc

Wenfengcheng commented 6 years ago

I'm sorry to hear that, But I tried to delete all the code related to 'setClipToOutline', which has no influences on the UI.

Does it mean that these lines of code relared to 'setClipToOutline' have no influences on the border effect?

muak commented 6 years ago

@Wenfengcheng

'ClipToOutline ' stops a child view from overflowing from a parent view. So removing them have an influence on borders of Layout views. The others such as Label and Button, as far as I remember, have no influence on the border effects.

Thanks.

Wenfengcheng commented 6 years ago

@muak

Thanks for your reply, I got it.