Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

For a project, I was analyzing part of a Java code structure for mobile applications. During the analysis, I realized that it didn't have a TextInputLayout, but right at the beginning it imports a ...
Pedro de Souza Foschiani's user avatar
0 votes
0 answers
38 views

Consider that: Al2TextView inherits from TextView Al2TextInputLayout inherits from TextInputLayout Al2TextInputEditText inherits from TextInputEditText When entering text into the second field (...
Sebastian's user avatar
1 vote
1 answer
41 views

I am trying to add a microphone button to a text field so that users can speak which will be translated to text. My layout looks as below: <com.google.android.material.textfield.TextInputLayout ...
cdczc's user avatar
  • 15
1 vote
1 answer
110 views

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
29 views

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
68 views

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
77 views

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
37 views

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

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
  • 309
1 vote
1 answer
354 views

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
  • 13
0 votes
1 answer
52 views

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,578
0 votes
1 answer
63 views

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
85 views

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,868
0 votes
1 answer
168 views

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
53 views

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.5k
0 votes
2 answers
123 views

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
0 votes
0 answers
40 views

Is there some way to add space between hint and edittext? My edittext is multiline and when theres to much text and lines hint can overlap edittext. I want additional spacing between hint and ...
user avatar
0 votes
1 answer
958 views

I am trying to design the TextField (based on the layout based styles of TextInputLayout and TextInputEditText). I need to achieve the below design. Like, the error message should appear below the ...
Karthikeyan Ve's user avatar
0 votes
2 answers
78 views

I determine the user's location and display it in a TextInputEditText field. The hint, however, remains in the background. What am I doing wrong? <com.google.android.material.textfield....
Captai-N's user avatar
  • 1,572
2 votes
4 answers
443 views

I have built a custom dialog with MaterialAlertDialogBuilder. The dialog has 2 TextInputLayouts. The problem is when I try to write something in the TextInputEditText and when the keyboard is visible, ...
AR Sharif Uddin JUMMAN's user avatar
0 votes
0 answers
23 views

The following classes could not be instantiated: - com.google.android.material.textfield.TextInputLayout (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to ...
Kelvin's user avatar
  • 1
0 votes
1 answer
61 views

If have a following layout in xml. It's a part of bigger layout <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/layoutInputNewText" android:...
Al Sh's user avatar
  • 61
0 votes
0 answers
42 views

I change the darkTheme as follows in the SettingsFragment under MainActivity and MainActivity is recreated normally. However, when I return to the MainFragment later, all the methods in the ...
Rüçhan Okal's user avatar
0 votes
1 answer
316 views

I am developing an android app, I've used TextInputLayouts to take input from user, while testing it on api level 24 it doesn't cause any problem but when i tried to test it on latest phones some ...
Vivek Adhikrao Sawant's user avatar
0 votes
1 answer
22 views

I have an cardview adapter where each card is a form of filling in a mandatory value (if the user want to save the value) and an optional commentbox. This mandatory value and the optional commentbox ...
Rangnitt's user avatar
1 vote
0 answers
56 views

So I've been having this problem for a while now and can't figure out how to fix it. The same thing was happening with ExposedDropdownMenu and the arrow icon on the end, but I gave up eventually. I've ...
tbesvir's user avatar
  • 11
0 votes
1 answer
51 views

So I have make a bottom sheet drawer inside it i have a recycler view which have a set of item in list manner. so every item on click opens and have a chat box in it. so the problem here is i have ...
Shubham Sharma's user avatar
0 votes
2 answers
74 views

I'm trying to manage the hint in a TextInputLayout/TextInputEditText, moving it inside a rounded shape, but I can't manage to move it, like in the picture: enter image description here This is my ...
GundamRX91's user avatar
1 vote
0 answers
515 views

i have a form layout with multiple TextInputLayouts (containing a TextInputEditText). Two of those field are used to input given- and familyname. Another field is the contact id ("Kontaktnummer&...
gabs's user avatar
  • 141
0 votes
1 answer
173 views

As per design I require TextInputLayout error text at right side, explored and tried below style, but didn't success. <style name="Theme.Input" parent="Widget.MaterialComponents....
Android Leo's user avatar
1 vote
1 answer
94 views

I want to create a material edittext field like this : enter image description here This is how I am creating the editext field: TextInputLayout textInputLayout = new TextInputLayout(MainActivity.this)...
user avatar
0 votes
1 answer
131 views

I have a typical TextInputLayout/TextInputEditText combination with a custom drawable as the EditText background: <com.google.android.material.textfield.TextInputLayout android:...
jack_the_beast's user avatar
0 votes
1 answer
71 views

I am using TextInputLayout and TextInputEditText. I cant find a way to change this purple color. I searched about it too but i cant find so much. How can i change it?
Ahmet Kaan's user avatar
0 votes
3 answers
310 views

There is an isEndIconChecked() in the EndCompoundLayout but I cannot see any access method to it from the TextInputLayout. Whats the best way to detect if it is currently checked or not? In my case I ...
Oliver Hoffmann's user avatar
0 votes
1 answer
453 views

I have met a problem when I try to use the TextInputLayout and TextInputEditText. Here is my code <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget....
James Cheung's user avatar
0 votes
1 answer
399 views

I'm using TextInputLayout to create some layout. <com.google.android.material.textfield.TextInputLayout android:id="@+id/cvvContainer" android:layout_width="...
dor506's user avatar
  • 5,444
0 votes
1 answer
213 views

So I want a transparent box background color even while my dropdown is selected, but by default it is being tented to darker color.. Check out the images below. Not selected Selected Here's my code &...
BitOfaLegend's user avatar
1 vote
1 answer
576 views

I want to add a style to my textfield.TextInputLayout, but when I add the app crashes and get error(This component requires that you specify a valid TextAppearance attribute. Update your app theme to ...
ahmed salama's user avatar
0 votes
1 answer
85 views

I've created a custom view for selecting days of the week which results is a string. I'd like to use it with two-way data binding. <?xml version="1.0" encoding="utf-8"?><...
mlody92's user avatar
  • 93
0 votes
2 answers
121 views

USE CASE I have a RecyclerView whose ViewHolder contains a TextInputLayout. For some situations I want it to display a hint and for other situations I don't. ISSUE When the RecyclerView recycles a ...
Ezequiel Bongiovi's user avatar
2 votes
2 answers
2k views

Is there any way to put OutlinedTextField's label on top (expanded) and still have the placeholder, when OutlinedTextField is not in focus? In xml layouts we have TextInputLayout that has ...
mrzbn's user avatar
  • 675
0 votes
0 answers
285 views

I try to add elevation to my TextInputLayout but android:elevation="10dp doesn't work! How can I do this? <com.google.android.material.textfield.TextInputLayout android:id="@+id/...
Mehrzad's user avatar
  • 123
1 vote
2 answers
353 views

I've got the following layout: <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content" ...
Nummer Eins's user avatar
2 votes
1 answer
89 views

I'm getting a rare error when I've tried to add a TextInputLayout to a simple layout for a Dialog, the editor stops to show the design mode WTF. What's wrong? Restarting Android Studio, doesn't work. ...
Víctor Martín's user avatar
5 votes
0 answers
92 views

so I've got the following layout with the following TextInputEditText : <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:...
Funny Moments's user avatar
0 votes
1 answer
300 views

I want to get the end and start icon view from TextInputLayout so I can do stuff like check if it is hovered or not. I don't know where to start (idk if this is possible), so any help will be greatly ...
ToolDroid's user avatar
0 votes
2 answers
542 views

When activity is started TextInputlayout with edittext always auto focasable. i try android:focusableInTouchMode="true" but it doesn't work. Hear is my code. <com.google.android....
Akshay Hadiya's user avatar
3 votes
2 answers
645 views

TextInputLayout prefix has a small but noticeable spacing to the subsequent text in the TextInputEditText. In the following image, The first www is the prefix, the following are the regular text. I ...
Nuno Costa's user avatar
1 vote
1 answer
399 views

I would like to add an AutoCompleteTextView Programmatically for an app, without referencing any items in a XML layout. This is what I would like to achieve: The XML code is the following: <com....
Learn2Code's user avatar
  • 2,320
0 votes
1 answer
105 views

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

1
2 3 4 5
18