-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Visual] [Material] [Android] Setting a button disabled reset the borderWidth #9262
Comments
@quentinR0bert Can you please attach a small project that demonstrates this issue? Thanks! |
Hi, The issue seems to be from somewhere else : In our project we set the border color when we set a button disabled. And we have a renderer for customisation and fixing a issue we haved : the BorderWidth don't totaly work with a Material element. We can have no border (BorderWidth = 0) and a little border (BorderWidth = 1) but if we affect another value (5 or 10) the BorderWidth visually is always one. For iOS we set the fix in the ApplyTheme override called at each modification of a visual property. But on Android we set on the OnElementChanged since ApplyTheme doesn't exist for the Android MaterialRenderer. But if we make a modification on the border in runtime (color or width) the MaterialRenderer re-set visually to One. In the sample there is the Renderers with only the fixing of the BorderWidth. So the issue seems to be "BorderWidth doesn't take apply other value than zero or one". And it's our actual workaround who doesn't fix this issue with a runtime modification. |
So I think this is an issue on the android side that should be resolved once we update to 1.1.0 In the original spec We reference this issue So once we update to material 1.1.0 we can revisit |
@PureWeen Two questions and a workaround we are using:
|
@tossingc I know this is months late, but i was having the same issue you're describing and when i updated xamarin forms and xamarin forms material to the latest today (4.7.0.1239) the issue was resolved. |
Description
When we set a button disabled, the borderWidth is reset to 1.
Steps to Reproduce
Expected Behavior
Actual Behavior
Basic Information
The text was updated successfully, but these errors were encountered: