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
903
questions
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), ...
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 ...
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 ...
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 ...
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 ...
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 ...
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"....
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 ...
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/...
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="...
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: ...
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 ...
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 ...
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 &...
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 ...