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

Questions tagged [android-textinputlayout]

Layout which wraps an EditText (or descendant) to show a floating label when the hint is hidden due to the user inputting text.

android-textinputlayout
1 vote
1 answer
42 views

How to add Different Padding Between Floating Hint and Input Text in Custom TextInputLayout?

I'm working on a custom TextInputLayout in my Android project. I need to differentiate the padding between the floating hint (label) and the input text. When the hint is floating (acting as a label), ...
Banyu Santoso's user avatar
0 votes
0 answers
16 views

app:passwordToggleEnabled not working, no funciona

I am working on a login for my application, but I implemented an app:passwordToggleEnabled, but it is not visible, I even added an app:passwordToggleTint but it is still not visible, I hope you can ...
Carlo Mena Mendez's user avatar
0 votes
1 answer
27 views

How to show border on TextInputLayout in Android Kotlin without MaterialComponents support

How to show border on TextInputLayout in Android without MaterialComponents. I have an AppCompatActivity using AppTheme.DialogTheme to show the Activity as a Dialog, but this configuration does not ...
jetberrocal's user avatar
0 votes
0 answers
55 views

Input jump on TextInputLayout from empty to filled state

I am using textInputlayout and textInputEditText from material design. Everything works fine until i use some of the custom fonts from the resource file. When user starts typing on the ...
MottaMaadi Bench's user avatar
0 votes
1 answer
29 views

Fixing hint placement in my Android application

So, I use TextInputLayout and EditText to input email, but I have some trouble with hint placement. I also don't know how to change the color of this "I" symbol. Here is my XML for this ...
arctg30's user avatar
0 votes
0 answers
25 views

How to position TextInputLayout's endIconMode="clear_text" to the left side of the TextInputEditText?

I am using android:gravity="end" on TextInputEditText and the placement of the end icon in this case is far from ideal, as shown in the following image. Note that the both the hint and value ...
Viktor Brešan's user avatar
0 votes
1 answer
14 views

How to toggle visibility of two password fields with one toggle in Android XML using Kotlin?

I have two password fields one is password another is confirm password. I want to use only one toggle in password field EditText using TextInputLayout's property passwordToggleEnabled="true"....
kartik's user avatar
  • 163
0 votes
1 answer
67 views

How to maintain keyboard focus with a searchable dropdown menu in Jetpack Compose?

I'm trying to implement a searchable dropdown menu in Jetpack Compose, but whenever the dropdown appears, the keyboard loses focus and disappears. How can I modify the code to prevent the keyboard ...
won's user avatar
  • 3
0 votes
1 answer
40 views

No space for OutlinedBox TextInputLayout label

The outline for an OutlinedBox TextInputLayout doesnt leave a space for the hint/label: <com.google.android.material.textfield.TextInputLayout xmlns:android="http://schemas.android.com/...
Kris B's user avatar
  • 3,550
0 votes
1 answer
49 views

Remove extra padding on start of TextInputLayout

The start text of textinput layout is getting cut Is it possible to remove the padding inside the textinput layout? TextInput style <style name="Widget.TextInputLayoutx" parent="...
Renz Manacmol's user avatar
0 votes
1 answer
45 views

How to show success state on TextInputLayout (similar to setError())

I need to show a success state on Material's TextInputLayout. I just need the same UI as this layout shows when an error is set. Following is what I need: class CustomTextInputLayout( context: ...
rupinderjeet's user avatar
  • 2,828
0 votes
1 answer
83 views

Android Custom TextInput Layout with Hint text and Placeholder are overlapping

I'm facing a weird issue while using a custom TextInputLayout where i have both hint text and placeholder text, in general scenario when the focus comes on the edit text then hint text float up and ...
Zafar Imam's user avatar
0 votes
0 answers
28 views

Center text vertically inside Android material TextInputLayout when it has fixed height in DP

I have a TextInputLayout which I want to have its height defined explicitly in DP. When I tried that, the text was not aligned inside TextInputLayout vertically in center. This question already asked ...
VSB's user avatar
  • 10.2k
0 votes
0 answers
44 views

Android TextInputLayout boxColorBackground enabled="false" state not showing the enabled state that is set in style in color selector

I have a <com.google.android.material.textfield.TextInputLayout> that is not behaving! I have set as a style a color selector for the boxBackgroundColor. The selector is working for the focused &...
user1743524's user avatar
0 votes
2 answers
102 views

How to display a clickable link in TextInputLayout error message, app:setError in android

I have a text input field that takes name as input. The layout contains an EditText widget inside the TextInputLayout. When the user input is blank, I want to display an error validation message ...
elsa's user avatar
  • 165

15 30 50 per page
1
2 3 4 5
61