Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
1 answer
386 views

Android TextInputEditText doesn't focus on cursor position

When trying to edit long text inside TextInputEditText, the focus goes always to the bottom, so the top (where actually the cursor is) stays out of the screen and you cannot see actually what you are ...
erkan.molla.dev's user avatar
4 votes
1 answer
362 views

how to change material TextInputLayout hint color on empty edittext?

I'm trying to change TextInputLayout hint color in case it's edittext empty and not focused but I can't do that, and here is my layout <com.google.android.material.textfield.TextInputLayout ...
Amin's user avatar
  • 503
1 vote
1 answer
535 views

Getting overlapping hint over com.google.android.material.textfield.OutlinedBox

While working with com.google.android.material.textfield.TextInputLayout, I am getting overlapping hint over the outlined box. This is the style I'm using: Widget.MaterialComponents.TextInputLayout....
Partha Chakraborty's user avatar
0 votes
1 answer
426 views

Changing the color of TextInputLayout's Counter

I'm trying to change the color of TextInputLayout's counter I've tried the accepted answers but they do not work. https://stackoverflow.com/a/33880925/11110509 <com.google.android.material....
DIRTY DAVE's user avatar
  • 2,641
0 votes
2 answers
828 views

Android: bottom of TextInputEditText always scrolling to top of softkeyboard

I'm using a TextInputEditText inside a TextInputLayout, which is inside a NestedScrollView: <androidx.core.widget.NestedScrollView android:id="@+id/nsv" android:layout_width="...
ReWa EUSA's user avatar
0 votes
1 answer
748 views

How to make Underline of TextInputLayout's edittext Round Corner

I want to make round corner's of bottom line in TextInputLayout Filled Text from Material Design. I am able to change the color of it in focused and unfocussed mode but how to change the corner of it ...
Nikhil Sharma's user avatar
6 votes
3 answers
5k views

How to change inactive border stroke color of Android Material TextInputLayout component [duplicate]

I am trying to setting up TextInputLayout unfocused border stroke color. For the same, There are too many questions and their answers and I have tried all of them. Like Created styles and used as ...
Bipin Vayalu's user avatar
  • 3,125
0 votes
1 answer
427 views

Material TextInputEditText not able to center hint and to keep input value moved to bottom

On https://material.io/components/text-fields there is an interactive demo for Filled TextField. Label hint is centered inside input field and when you click on it and enter some text, label moves up ...
Nikola Samardzija's user avatar
1 vote
3 answers
1k views

Show label of TextInputEditText when not focused on this

I have a layout with two TextInputEditText and when I set a text on this (programmatically or with xml) and set focus on another TextInputEditText, the above label of TextInputEditText was hidden. I ...
Fahim's user avatar
  • 404
0 votes
2 answers
602 views

TextInputLayout: Remove padding between text and suffixText

Am using TextInputLayout in my design for showing price layout. Added suffixText for displaying currency symbol which must be shown exactly next to entered text. <?xml version="1.0" ...
Oam's user avatar
  • 912
1 vote
1 answer
886 views

how to click on drawableRight on every TextInputEditText

how to do click on drawableRight edit image of every TextInputEditText? I want to click on the edit icon and then enable to edit each field. How can i do this? <LinearLayout android:...
TB13's user avatar
  • 377
4 votes
1 answer
1k views

change spaces of bottom line in TextInputEditText

I was working on a design that requires all views has an alignment to left. I'm using TextInputLayout && TextInputEditText there was spaces for hint & text that are solved by setting ...
Moustafa EL-Saghier's user avatar
3 votes
4 answers
6k views

password toggle icon textinputlayout override error icon

I am using a password toggle to show and hide the password. And I do not want to use the custom drawable. But, when this edit text generate error it overrides the toggle password icon and unable to ...
Saad Khan's user avatar
  • 190
10 votes
2 answers
3k views

TextInputLayout move the hint label and change it's background color when focused

I am trying to customize materials TextInpuLayout.OutlinedBox and TextInputEditText. My current state is like following image What I want to do is remove the background of the hint label so that ...
ThizzHead's user avatar
  • 101
4 votes
4 answers
6k views

TextInputEditText, how can align hint to the top margin

I have some trouble with a TextInputEditText and his hint message if I use the last material library version com.google.android.material:material:1.2.0-alpha02 .. I set 5 lines scrollable ...
aeroxr1's user avatar
  • 1,064

15 30 50 per page