-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Material]Unable to override FilledBox style with Outlined #5529
Comments
@LoGA80 those are all very useful notes thank you!! I'm working on this issue now which should give you a lot of good hooks to customize. I'll be sure to address all the points you've made above and give some guidance
Dangit! I've changed this on an upcoming PR so you should be able to override this in an upcoming release. |
Just one update: Effect DOES work, I assigned it accidentally to a hidden control so I had no chance to see it work. But I would prefer using styles than modifying the properties from code. I might be wrong but I think the styling problem is due that the FilledBox style is explicitly set in the Android TextInputLayout control. If it would not have any style assigned explicitly, it would be possible to assign either FilledBox or Outlined. |
Yea the unfortunate thing about TextInputLayout controls is that they don't make it very easy to style through code https://issuetracker.google.com/issues/119314741 I tried to use ContextThemeWrappers for it and it kind of worked but it was always a bit off. The hope with the issue #5005 will be to include some overrides or extension points where you can easily set your own resource id for styling if you need to We will also provide an out of the box default style for all the material styles that google provides (i.e. outline) In AndroidX the way these are styled are actually changing to use a property called materialThemeOverlay :-/ soooooo that'll be fun when we have to change it all for that |
FYI |
I'm going to close this for now and let the work be tracked on #5005. Thanks! |
Description
No matter how I try I cannot change the style of the material Entry from the default Filled to Outlined. Is it really not possible to do so or am I just too unexperienced?
Steps to Reproduce
I've tried:
Expected Behavior
Should be able to change the style of the rendered TextInputLayout
Actual Behavior
Cannot change it properly, the most I could achieve is a mixture of the styles looking worse than any of them alone
Basic Information
The text was updated successfully, but these errors were encountered: