You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I have a MaterialButtonToggleGroup with a three buttons, all with the outline style. The outlines on the outer buttons are blurred, while the outline of the button in middle isn't
My guess would be rounding issues on hdpi devices, since that's the only density which yields a non-integer dp-to-px ratio (1.5 to be precise). This means e.g. 1dp becomes 1.5px, which can be displayed as 1px (too thin) or 2px (too wide).
I think it's actually caused by RippleDrawable implementation of Lollipop doesn't correctly propagate drawable state when view is being attached (or under certain corner situations). So buttons in a toggle group look as in "disabled" state, and that's why the outlines are blurred.
Are you sure it also happen on Android 7? I can only reproduce this on Android 5/5.1.
Description:
I have a MaterialButtonToggleGroup with a three buttons, all with the outline style. The outlines on the outer buttons are blurred, while the outline of the button in middle isn't
Expected behavior:
Please see openhab/openhab-android#1615 (comment) for a photo of this issue. It seems that is happens only on low dpi devices.
Please see openhab/openhab-android#1615 (comment) for a possible explanation for this bug:
Source code:
I can reproduce this issue with https://github.com/ricknout/android-mdc-theming, master at 576d0f2e02a599ccbc00b7bc2ee04709f962111a and the following diff:
Without the patch the outlines of all buttons are blurred.
Android API version:
At least on Android 5.1.1 and 7.1.2
Material Library version:
1.3.0-alpha01
Device:
The text was updated successfully, but these errors were encountered: