Questions tagged [textinputlayout]

114 questions
3
votes
2 answers

app:passwordToggleEnabled="true" not working

I am trying to implement a login page and this is my TextInputLayout for the password field.
3
votes
2 answers

Using design support library with constraint layout

I'm tried to use TextInputLayout from support design library within ConstraintLayout, but got a error: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.constraint.ConstraintLayout$LayoutParams How can I achieve the same…
2
votes
3 answers

Always make the prefix text in text input layout visible like the hint

I am having a prefix text in a Text Input Layout but it only shows when i click inside the Text Input Edit Text which is inside the Text Input Layout that has my prefix text. How can i make the prefix text to always show with the hint Below is my…
2
votes
1 answer

Issue with input keyboard sources in RStudio Fedora 32

My RStudio in Fedora 32 doesn't accept other input sources rather than the default en-US keyboard while other apps are doing well. I have to type Vietnamese letters in Text Editor and copy to RStudio. Does anyone have the same issue? Any…
xwhitelight
  • 1,569
  • 1
  • 10
  • 19
2
votes
1 answer
2
votes
1 answer

How to prevent layout shift when TextInputLayout error is shown

I have a login screen with email and password fields using TextInputEditTexts within TextInputLayouts inside a ConstraintLayout. When an error message is set to a TextInputLayout it shiftes down all controls below it. I know that this behavior is…
yaugenka
  • 2,602
  • 2
  • 22
  • 41
2
votes
2 answers

EditText is not visible inside TextInputLayout

I have EditText, and it is placed inside the TextInputLayout. But the problem is EditText is not visible after deploying on the device. My code is below.
Rakesh
  • 2,730
  • 10
  • 39
  • 65
2
votes
2 answers

Switch inside TextInputLayout

I would like to accomplish the task shown in the two images below; more precisely, be able to "extend" somehow the TextInputLayout to the Switch so that it is included in the forementioned layout, along with the TextInputEditText. All tries I have…
Vanhaeren Thomas
  • 367
  • 4
  • 15
2
votes
2 answers

How to keep two TextInputLayouts on single line consistent width

I have two TextInputLayout on a single line. They take half of the screen each when rendered: But if i type alot of text in one and less in the other, their width changes and one of them gets smooshed: How do i keep them of the same ratio that…
eight
  • 339
  • 1
  • 5
  • 16
2
votes
1 answer

setTextColor equivalent for TextInputLayout

I am creating a text inout box using TextInput Layout. I want to apply drawable and colour resources based on different variants of the input box. I have created different xml resource files under res/color and res/drawable directories. public enum…
Arghya Pal
  • 133
  • 1
  • 9
2
votes
0 answers

How to change spacing between hint and underline of EditText inside TextInputLayout?

I want to change the spacing between the hint and underline. I am using EditText inside TextInputLayout. margin padding on EdiText or TextInputLayout not working. It change the entire content side instead of the spacing between hint and…
2
votes
4 answers

How to set hint color for TextInputLayout after lost focus

I am using this below xml code:
Digvijay Machale
  • 601
  • 7
  • 12
2
votes
1 answer

Is there any 3rd party library available in iOS(Objc) for `textinputlayout` like android

I am search a Library in iOS (Objc) for textinputLayout like android has. here is the video url for more clarity, https://youtu.be/YnQHb0fNtF8 Can anyone please tell if there is any 3rd party library available or do I need to write my own code with…
Bhupesh
  • 2,310
  • 13
  • 33
1
vote
3 answers

TextInputLayout label overlapping AppCompatAutoCompleteTextView input

I'm having an issue where my TextInputLayout label is being overlapped by the input within an AppCompatAutoCompleteTextView. My apologies if this has been answered before. Here is my code…
Bri_24
  • 23
  • 1
  • 4
1
vote
1 answer

TextInputLayout - make it clickable with working ripple effect

I want that my TextInputLayout has following functions: open a dialog on click show a ripple background like e.g. the ExposedDropdownMenu style does It should look like a TextInputLayout but work like a Button. Code What I have so far is…
prom85
  • 16,896
  • 17
  • 122
  • 242