java.lang.UnsupportedOperationException: Can't convert value at index 9 to dimension: type=0x4
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:720)
at com.facebook.shimmer.ShimmerFrameLayout.<init>(ShimmerFrameLayout.java:226)
at com.facebook.shimmer.ShimmerFrameLayout.<init>(ShimmerFrameLayout.java:147)
... 33 more
Looking at the source, this is because the setter inexplicably takes an int and casts it to float, instead of taking a float in the first place.
public void setRelativeWidth(int relativeWidth) {
this.mMask.relativeWidth = (float)relativeWidth;
this.resetAll();
}
This should be an easy fix. I'd open a PR myself if I didn't have a deadline to meet.
I can't set the relative width:
Looking at the source, this is because the setter inexplicably takes an int and casts it to float, instead of taking a float in the first place.
This should be an easy fix. I'd open a PR myself if I didn't have a deadline to meet.