-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Android 4.2.2 an exception Java.Lang.NoSuchMethodError: no method with name='getDrawable' is thrown. #2
Comments
Thanks for reporting this, I will look into it. |
Found the problem. Originally, As per Material guidelines, Buttons have an additional touch target (padding) of 6 units on all sides. This additional values are included in the view's total height and total width. Below you can see the changes. The device on the left side is runnning Android 4.2, the right is running Android 4.4. I may able to push and release this change, along with other features, sooner or later this day. |
Version 1.0.5 has been released. |
I think, the visual differences for earlier Androids is not an issue these days at all, as they still have pretty cool "bonus" that the app even works (launches) on such devices. (Especially, in comparison to iOS world). |
The components are pretty nice, and they work fine for me on newer Android.
But when I also test it on 4.2.2, I receive the following exception:
In my particular case I rather use only
MaterialButton
component.The issue looks like this issue mentioned on stackoverflow:
https://stackoverflow.com/questions/30266971/why-getdrawable-doesnt-work-on-some-android-devices
My current version of XF.Material library: 1.0.4
The text was updated successfully, but these errors were encountered: