question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ExposedDropDownMenu] Can't find style Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu

See original GitHub issue

Description: Unable to use/find Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu in style.xml, despite the fact when I search through the files, it exists inside the material library xml.

Expected behavior: I should be able to set my style parent to Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu

Source code: -

Android API version: min: 21, target: 29, compile: 29

Material Library version: 1.2.0-alpha01

Device: -

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
nodejsjscommented, Mar 26, 2020

I think when the documentation says Widget.MaterialComponents.TextInputLayout.*.ExposedDropdownMenu, it means any *ExposedDropdownMenu from the styles. Using a specific style like Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu works fine.

2reactions
nodejsjscommented, Mar 27, 2020
<com.google.android.material.textfield.TextInputLayout
     style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu" />

When I type @style/Widget.MaterialComponents.TextInputLayout., the autocomplete suggests the following: Screenshot 2020-03-27 at 19 01 09 When I keep typing *.FilledBox.Expo, the autocomplete doesn’t show anything for ExposedDropdownMenu

Screenshot 2020-03-27 at 19 05 04
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cant resolve Widget.MaterialComponents.TextInputLayout ...
I raised this query in Android Material Components' Github issues. ... any style from TextInputLayout , such as FilledBox or OutlinedBox .
Read more >
Cant resolve Widget.MaterialComponents.TextInputLayout ...
ExposedDropdownMenu. But I can't resolve this style. Android Studio says I can only use: @style/Widget.MaterialComponents.TextInputLayout.FilledBox.
Read more >
Text fields - Material Design
Note: A text field is composed of a TextInputLayout and a ... See the full list of end icon modes . ... Dense...
Read more >
Creating & styling dropdown menus on Android - ITNEXT
android:id="@+id/dateFilterContainer" style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu"
Read more >
Material Exposed Dropdown Menu Android - YouTube
Developer needs to design textinputlayout exposed dropdown menu to ... with textinputlayout in android and set style with text spinner ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found