material-components / material-components/material-components-android
[TextInputLayout] Add a dropdown to the left of input instead of icon
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
In my UI design I need to add a dropdown to the left side of a TextInputLayout. Currently there is only support to add a drawable icon.
**Describe the solution you'd like**
It would be great to add another child to a `TextInputLayout`, name it `LeftDropdown`, for example.
```xml
```
The dropdown could receives its options like the Spinner view already does, through an Adapter.
**Describe alternatives you've considered**
My workaround was to add a transparent left drawable icon and the Spinner component on top of the TextInputLayout, like this:
```xml
```
**Additional context**
n/a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing TextInputLayout API and the Spinner adapter usage described in the issue. Done would mean a supported dropdown can appear on the input's left side, accept adapter-provided options, and work through the requested XML structure.
Written by the indexing model from the issue text.
Assessment
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100