Questions tagged [android-textinputedittext]
308 questions
6
votes
2 answers
MaterialComponents.TextInputLayout.OutlinedBox it doesn't work properly boxBackgroundColor
I use material. I'm going to use a color for TextInputLayout for the backdrop, but something like the one below! hint background not change.i used style and wanted to make changes but it didn't work. In the layout itself I tried to apply the changes…

abolfazl bazghandi
- 935
- 15
- 29
6
votes
2 answers
TextInputLayout outline hint color
I have a strange bug on a TextInputLayout. The color of the hint of the com.google.android.material.textfield.TextInputEditText goes white on focus.
this is how I am setting it:

ghita
- 2,746
- 7
- 30
- 54
6
votes
0 answers
Changing the background color of the TextInputLayout label TextView
So I am trying to change the color of the background of the label on the TextInputLayout/EditText. Most other questions seem to be referring to the color of the text but the default functionality of the label I have observed is that the background…

user2876392
- 69
- 4
6
votes
1 answer
Image keyboard support in React Native
Android documentation states that:
With Android 7.1 (API level 25), the Android SDK includes the Commit Content API, which provides a universal way for IMEs to send images and other rich content directly to a text editor in an app.
However, when I…

Donut
- 110,061
- 20
- 134
- 146
6
votes
2 answers
Opaque background in floating hint in TextInputLayout
I have to make a textinputlayout with the floating hint label, that needs to have a white background. Some what similar to this--
Design expected:
But all I have been able to do so far is this:
Actual Design using TextInputLayout:
Currently the…

anup1912
- 61
- 1
- 1
- 5
5
votes
1 answer
How to prevent/stop/disable android SDK EditText exposed to application class
I have an SDK that contains MYSDKActivity. In this activity layout, I have 1 edit text where the user can enter his card number. Any android Client who is integrating this SDK, can use ActivityLifecycleCallbacks in their application class and…

Kishan Maurya
- 3,356
- 8
- 21
5
votes
0 answers
Using ChipDrawable in TextInputEditText span, how do I add clickListener to the ChipDrawable CloseIcon?
I have following scenario:
Chip definition:

Roar Grønmo
- 2,926
- 2
- 24
- 37
5
votes
3 answers
How to change inactive border stroke color of Android Material TextInputLayout component
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 theme, Created color selector and applied that, and…

Bipin Vayalu
- 3,025
- 2
- 25
- 39
5
votes
4 answers
Android Talkback incorrect announcement on TextInputLayout
I have the following piece of code in my layout

Levon Petrosyan
- 8,815
- 8
- 54
- 65
5
votes
1 answer
TextInputLayout background color changes when using auto complete
I made a login Activity (using Android studios automatic Login Activity). And here is the widget for the email view to input:

RJB
- 1,704
- 23
- 50
5
votes
10 answers
How to replace particular word from edittext
I have one edittext: edittextmysite.
Now I want to provide default text, for example: "https://wwww.mysite.com/"
I have achieved it this as follows:
edittextmysite.setText("https://wwww.mysite.com/");
Selection.setSelection(edittextmysite.getText(),…
user3997016
5
votes
2 answers
Setting android:lines on TextInputEditText not working
Do anyone know how to show Total Lines prior display when using TextInputEditText and TextInputLayout? I don't have this problem when using the normal EditText without the TextInputLayout. This is my sample code…

2MuchSmoke
- 103
- 2
- 10
5
votes
1 answer
android textInputEditText with custom background is not working ok
i'm using textInputEditText inside textInputLayout
i had to set background for my editText to achieve a bordered view for my editText.
but when i call setError() on my textInputLayout the entire editText color changes to red.
but i want to change…

m7majidi
- 83
- 2
- 7
5
votes
0 answers
NullPointerException on TextInputLayout.passwordVisibilityToggleRequested
I got an error in Firebase crash reporting about Password toggle button on an app in release mode in some real devices. The problem is the stack trace error is all about android.support.design code like you will see in the following log taken from…

MiguelHincapieC
- 5,445
- 7
- 41
- 72