Questions tagged [textinputlayout]

114 questions
1
vote
1 answer

How to change the position of toggle button in TEXTINPUTLAYOUT?

Hey I'm working with material design dependency and having a problem that how I change the position of toggle button in TEXTINPUTLAYOUT? As seen in below image the word password is not align with password toggle button Thanks …
1
vote
1 answer

How to change the Material Design TextInputLayout Hint Text Color?

I'm trying to set the hintTextColor AND the boxStrokeColor of Material Design's textInputLayout into 3 different state of colors, for example: red for when it's disabled (I don't know how to set the boxStrokeColor in disabled state, so please don't…
1
vote
1 answer

Keyboard is hiding on scrolling

In my xml, I am having TextInputLayout edittext inside NestedRecyclerView, when focus is on first edittext and I am going to focus on second edittext then keyboard is hiding and showing, on scrolling also keyboard is hiding but focus is still…
Mohit
  • 11
  • 1
1
vote
2 answers

TextInputLayout will not set errorIconDrawable

When I use style="@style/Widget.Design.TextInputLayout" for TextInputLayout, setting app:errorIconDrawable does nothing. It only works when I don't set the style and let it inherit the application theme (Theme.MaterialComponents.Light.NoActionBar).…
1
vote
1 answer

Subclass TextInputLayout uses broken theme

I need to subclass TextInputLayout to provide a custom behaviour. However, even with an empty body, the layout picks up a different theme from somewhere. I would not be too worried if I am able to override the theme but this theme is just straight…
1
vote
3 answers

How to show the error icon in a TextInputLayout programatically?

I'm using a TextInputLayout widget and I simply want to display the error icon in the end side of the view regradless of the error message.
1
vote
1 answer

TextInputLayout hides text

Trying to set text in com.google.android.material.textfield.TextInputLayout. But hint is alway at the upper position and hides text, what can I do do fix this
1
vote
2 answers

How to use TextInputLayout in preferenceScreen

I am trying to use TextInputLayout in a preference screen so as have a nice neat password box that has a show password option. I know there are ways and means of doing it with checkboxes and scripting but I would really love to be to just use the…
poby
  • 1,572
  • 15
  • 39
1
vote
1 answer

How to remove ellipsize(three dots) in TextInputLayout hint text?

I need to remove ellipsize(three dots) from my hint text and want to show complete text. I am using TextInputLayout widget. Adding ellipsize attribute to TextInputEditText does not work. Below is the code for TextInputLayout Widget
Taha Asif
  • 333
  • 6
  • 24
1
vote
2 answers

How to set the error text alignment to center in TextInputLayout

How to align the error text message to the center and below of edittext.I tried to align but its not working.Here is my code: Xml
pratival
  • 111
  • 8
1
vote
4 answers

How to get text from TextInputLayout in Kotlin?

I have a text input layout with id login_mobile_number, I have imported this module to stop using findViewById methods: import kotlinx.android.synthetic.main.activity_login.* Whenever I try to get text from the TextInputLayout by val…
Naveen
  • 769
  • 1
  • 9
  • 28
1
vote
0 answers

Xamarin Android ViewRenderer ctor throws null reference

tl;dr: CustomRenderer with ViewRenderer works, CustomRenderer with ViewRenderer does not. I have created an EditText with floating labels via a CustomRenderer: Android Design Example Rendering with…
Csharpest
  • 1,258
  • 14
  • 32
1
vote
1 answer

Is it possible to manage the tooltip in widget.TextInputLayout

As Edittext it is not the only one in the group widget. With TextInputLayout the hint didn't work. Tell me is there any way else to summon help? This is my layout:
Gennadii Ianchev
  • 129
  • 1
  • 2
  • 11
1
vote
0 answers

TextInputLayout with drawable move hint

I added left drawable to TextInputLayout and now hint moves to right. It should be at start of row.