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

All Questions

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
1 answer
59 views

TextInputLayout - Hint padding issue

I am using textInputLayout in my application, but I am getting additional padding to the Hint. Can anyone help me out. Screenshot: Xml Code: <com.google.android.material.textfield.TextInputLayout ...
krish's user avatar
  • 57
2 votes
2 answers
740 views

Can remove space between box and underline for android TextInputLayout

I want to create TextInputLayout without a gap between the underline and edge of the box can remove this gap? image here: <com.google.android.material.textfield.TextInputLayout android:...
Amro Shekh Zain's user avatar
2 votes
2 answers
356 views

Change HintTextColor and Cursor Color of TextInputEditText Programmatically

I use Spinner and TextInputEditText in my app that I would like to change some EditText features(Cursor and HintText color) when user selects spinner item. Here is my code: private void setSpinner(...
saeid rasouli's user avatar
0 votes
1 answer
794 views

How to change the focused hint color(upper) of TextInputLayout according to specific conditions programmatically

If the text entered in TextInputLayout meets the email regular expression, I would like to change the color of the hint label shown in the attached picture as programmatically.
paldangs's user avatar
4 votes
3 answers
2k views

AutoCompleteTextView - How to remove margin from top and bottom?

I'm creating a dropdown menu using AutoCompleteTextView. How do I remove the default margins at the top and bottom of the list? To recreate: <com.google.android.material.textfield.TextInputLayout ...
DIRTY DAVE's user avatar
  • 2,641
0 votes
2 answers
352 views

Android TextInputLayout Crashed app when I had added 'style'

I've got problem with TextInputLayout from material components for android. When I add style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" to my TextInputLayout, app ...
Zalezny's user avatar
  • 13
2 votes
0 answers
837 views

Android TextInputLayout and TextInputEditText with outlined border and show hint text above outlined box

I am using TextInputLayout and TextInputEditText for my user input in my app, But now we need different design as like below screen. I mean hint text should be above outlined box instead of within ...
Bipin Vayalu's user avatar
  • 3,125
1 vote
1 answer
535 views

Getting overlapping hint over com.google.android.material.textfield.OutlinedBox

While working with com.google.android.material.textfield.TextInputLayout, I am getting overlapping hint over the outlined box. This is the style I'm using: Widget.MaterialComponents.TextInputLayout....
Partha Chakraborty's user avatar
2 votes
2 answers
154 views

TextInputLayout errorDrawable doesn't render a vector properly

So I have a simple TextInputLayout <com.google.android.material.textfield.TextInputLayout android:id="@+id/emailAddressTil" style="@style/Widget.MaterialComponents....
Muhammad Ahmed AbuTalib's user avatar
1 vote
2 answers
2k views

Hide Soft Keyboard When User Touches the Dropdown Menu

I have the following Android Material Components exposed drop-down menu in my app: <com.google.android.material.textfield.TextInputLayout android:id="@+id/drop_down_menu" style=&...
Tom Darious's user avatar
0 votes
1 answer
1k views

Is it possible to update the textfield in Material design date picker?

is it possible to add an outline and hide the mm/dd/yyyy text in material design date picker : https://material.io/components/date-pickers#anatomy I am trying to make it such that the outline of ...
Angela Heely's user avatar
0 votes
1 answer
523 views

How do I add padding/margin to the left side of the selected menu option in TextInputLayout?

I have the following exposed dropdown menu that looks like this when an option is selected: This is what I have in my XML layout for the exposed dropdown menu: <com.google.android.material....
Tom Darious's user avatar
0 votes
2 answers
1k views

Android material design textinputlayout

Is there any way to handle suffix onclick event in android material input ? I have xml layout like this <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android=&...
Behruz Bahromzoda's user avatar
0 votes
1 answer
426 views

Changing the color of TextInputLayout's Counter

I'm trying to change the color of TextInputLayout's counter I've tried the accepted answers but they do not work. https://stackoverflow.com/a/33880925/11110509 <com.google.android.material....
DIRTY DAVE's user avatar
  • 2,641

15 30 50 per page
1
2 3 4 5
12