Questions tagged [textinputlayout]
114 questions
0
votes
0 answers
autoComleteTextView as spinner with images
I make ArrayAdapter for AutoComleteTextView that outputs images as objects, but it output image id in selected item. How I can output image?
adapter
class HitDicesSpinnerAdapter(context: Context, private val images:…

Davanok
- 73
- 1
- 4
0
votes
1 answer
How do I change the boxBackgroundColor of TextInputLayout dropdown while selected?
So I want a transparent box background color even while my dropdown is selected, but by default it is being tented to darker color.. Check out the images below.
Not selected
Selected
Here's my…

BitOfaLegend
- 59
- 6
0
votes
0 answers
how to set endIconMode in a custom TextInputLayout?
I'm trying to figure out how to set the endIconMode in a custom text input layout. I am trying to set this in the attrs.xml, not programmatically (this is how I'm asked to do it at work)
here's what it looks like:
attrs.xml

aj mitchell
- 1
- 3
0
votes
1 answer
Get start and end icon view from TextInputLayout
I want to get the end and start icon view from TextInputLayout so I can do stuff like check if it is hovered or not.
I don't know where to start (idk if this is possible), so any help will be greatly appreciated.

ToolDroid
- 1
- 2
0
votes
0 answers
AutoCompleteTextView update selected item
I have two different TextInputLayouts both of which have an AutoCompleteTextView inside them to show a list of user selectable options. The second AutoCompleteTextView changes according to the choices of the first. Everything works perfectly, the…

C-Gian
- 62
- 2
- 19
0
votes
1 answer
Change only lebel EditText to uppercase when using TextInputLayout
I am using the new TextInputLayout from material design library.
I only need to uppercase the Lebel(when positioned up), not the hint.
This is how should looks like
Here is my XML for my TextInputLayout and…
0
votes
2 answers
How to disable error check on TextInputEditText when I press "next" action?
I have 3 TextInputEditText and I want to focus on the next field by pressing the "next" key of my keyboard.
The problem is that I can't go to another TextInputEditText because of the "Source is black " error:
How I can bypass this error and go…

vaniokmd
- 59
- 7
0
votes
0 answers
Password toggle for multiple TextInputLayouts
I have two TextInputLayouts where the first one gets the password input and the second one gets the confirmed password input. I'm completely okay with the single-input layout toggle change. However, I wanted to also toggle the other password input…
0
votes
2 answers
Set TextInputLayout floating hint color as Outline color
I'm using MaterialComponents Outline TextInputLayout. I need to set different colors on hint texts:
"main" hint (when no text is present in the TextInput) --> black with 60% alpha
floating hint --> same color as the outline (that is, colorPrimary…

andumava
- 51
- 8
0
votes
0 answers
Material Design in RecyclerView issue
I'm using Material Design, MVVM, Room, two-way data binding in my project. I'm making the view expand and collapse i.e, visible and gone in recycler view which contains material design TextInputLayout, and if I expanding the loaded views and if the…

swapnil mali
- 1
- 1
0
votes
0 answers
Fatal Exception android.view.InflateException: Binary XML file line #291 in layout/activity_main: Binary XML file line
I am seeing this crash from firebase,App is crashing for almost all android version and device are majorly samsung,vivo,xiaomi,huawei etc.
I have searched but most of reason i am seeing is related to theme in androidx,In my code i am not using…

Neha Malviya
- 11
- 1
0
votes
0 answers
Android textinputlayout on adding left padding to the layout i get an equal amount of space on the right side and it looks as a margin
On adding paddingleft to textinputlayout an equal number of spacing is applied to right hand side as if a margin is applied.
fragment_add_task.xml with left padding:

Viren Bisht
- 1
- 2
0
votes
1 answer
How to remove shadow from OutlinedBox TextinputLayput's floating label
You can see the background of floating label is not clear(White) it's having some shadow.I tried many things but it did not work.

Tapan Gohil
- 68
- 5
0
votes
1 answer
How to limit special characters in textinput in Flutter?
I want to use only Alphabat, space and "-" for name input using "Textinput".
Usage:-
For user name input we don't want to allow user to enter "(,),$,%,&,*" characters.

Hardy
- 2,576
- 1
- 23
- 45
0
votes
1 answer
How does the TextInoutLayout observe String value via data binding and Livedata from Viewmodel?
When I write this code with a normal editext, It works fine, when I do t with the TextInputLayout/TextInputEditText, it does not work. What I want is the input field(EditText) to observe the string via data binding.
I've tried obersving it via code…

EmmaneulO1
- 63
- 1
- 5