MaterialChipsInput
MaterialChipsInput copied to clipboard
DetailedChipView not positioned correctly in Android 4.4
This issue seems to occur only in Android 4.4. Here is a screencap of what it looks like:
I see this bug on API 23.
Haven't tried it to be honest. I've been running on API 25 and usually testing on API 19 to ensure compatibility and that's where the issue popped up for me.
In ChipsAdapter.java
line no: 222, replace the line with below code:
v.getLocationOnScreen(coord);
also at line 264 and 265 replace with below code:
layoutParams.leftMargin = coord[0] + ViewUtil.dpToPx(13); layoutParams.topMargin = coord[1] + ViewUtil.dpToPx(40);