Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Exposed Dropdown Menu] Outline style displays surface color background when set editable=false #1137

Closed
lcdsmao opened this issue Mar 23, 2020 · 3 comments
Labels

Comments

@lcdsmao
Copy link
Contributor

lcdsmao commented Mar 23, 2020

Description: Full description of issue here

colorSuface=red colorSurface=white
Screen Shot 2020-03-23 at 23 37 21 Screen Shot 2020-03-23 at 23 38 48

I try to create an uneditable Exposed dropdown menu with Widget.MaterialComponents.TextInputLayout.OutlinedBox.ExposedDropdownMenu style.
If I set attr android:editable="false" for AutoCompleteTextView, text field get background of surface color when focused.
Is this the documented behavior?

Expected behavior: Screenshots and/or description of expected behavior

Source code: The code snippet which is causing this issue. Please consider attaching a minimal sample app that reproduces the issue.

Android API version: Android API version here

Material Library version: Material Android Library version you are using here (e.g., 1.1.0-alpha07)
1.1.0

Device: Device on which the bug was encountered here

To help us triage faster, please check to make sure you are using the latest version of the library.

We also happily accept pull requests.

@lcdsmao lcdsmao added the bug label Mar 23, 2020
@leticiarossi
Copy link
Contributor

Hi, that's correct. Because the layout needs to have a ripple on press, a background with the surface color is set.

@lcdsmao
Copy link
Contributor Author

lcdsmao commented Mar 24, 2020

@leticiarossi Thank you!
Maybe it can be helpful to state this behavior in the documentation? (Or maybe I missed it)
I have searched a lot to find where this background color comes from. ☺️

@leticiarossi
Copy link
Contributor

We've been updating our components documentation but haven't gotten to menus yet, will make sure to include that! The code itself can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants