Android Question As segmentedtab Method: setClipToOutline not found

mcqueccu

Well-Known Member
Licensed User
Longtime User
I realised my app is crashing on devices running Android 4.x.x with this error.

Fatal Exception: java.lang.RuntimeException: Method: setClipToOutline not found in: anywheresoftware.b4a.BALayout

Can this error be catch or this method disabled if using devices less than API 21 as Erel suggested in the library thread?
 

Alexander Stolte

Expert
Licensed User
Longtime User
Can this error be catch or this method disabled if using devices less than API 21 as Erel suggested in the library thread?
maybe with this:
B4X:
If p.SdkVersion >= 21 Then 'p = phone lib.
but i doubt if the view will still look like it should, at least if you want to have round corners.
 
Upvote 0
Top