Description:
I'm trying to set a DropDown menu. But the dropdown Icon seems to be on top of the TextInputLayout, not to mention that I can not give a color to the dropdown arrow.
The Hint when collapsed keeps what I think is the colorSurface attribute of my theme.
In the layout editor the TextInputLayout seems ok but it does not look the same in my physical device as shown in the screenshots.
My issues are the dropdown arrow covering the TextInputLayout and the background of the hint when collapsed, for the hint when collapsed tried to set a style for it with a transparent background but still the same.
Before selecting the dropdown arrow:
When the dropdown list is displayed:
After a selection has been made:
Expected behavior:
This is how it looks in the Layout Editor:
Source code:
The main theme of my application inherits from:
Theme.MaterialComponents.NoActionBar
This is the TextInputLayout in my layout:
As it turns out I had set a color in my Dialog android:background, and that made the arrow looked covering the box.
Still the hint when collapsed has a background, not transparent.
Description: I'm trying to set a DropDown menu. But the dropdown Icon seems to be on top of the
TextInputLayout
, not to mention that I can not give a color to the dropdown arrow. The Hint when collapsed keeps what I think is thecolorSurface
attribute of my theme. In the layout editor theTextInputLayout
seems ok but it does not look the same in my physical device as shown in the screenshots. My issues are the dropdown arrow covering theTextInputLayout
and the background of the hint when collapsed, for the hint when collapsed tried to set a style for it with a transparent background but still the same.Before selecting the dropdown arrow:
When the dropdown list is displayed:
After a selection has been made:
Expected behavior: This is how it looks in the Layout Editor:
Source code: The main theme of my application inherits from:
Theme.MaterialComponents.NoActionBar
This is theTextInputLayout
in my layout:This are the corresponding styles:
Android API version: Android 10 & Android 7.1.1
Material Library version:
implementation 'com.google.android.material:material:1.2.1'
Device: Samsung A71 & Xperia Z5P