android-textinputlayout Questions

4

Solved

I want to remove dropdown arrow which is created by AutoCompleteTextView when I use TextInputLayout and use Style: ExposedDropdownMenu Below is my code: <com.google.android.material.textfiel...

5

Solved

Hi I need to remove the underline in my TextField because it look ugly when the TextField is circular. I have sat the activeColor to transparent, but then the cursor wont show (because it's transpa...

5

I need to change color of the password toggle in TextInputLayout if EditText is focused or not. I've done it this way but it's not working. The color is always equals color light grey (from state f...

16

Solved

I have an android screen which takes email from the user. Below is the snippet of the code, I want to remove the underline which appears below the text. <com.google.android.material.textfield....

11

Solved

I have TextInputLayout and TextInputEditText like this <com.google.android.material.textfield.TextInputLayout android:id="@+id/loginUsernameText" android:layout_width="match_parent" android:...

5

Solved

I would like to remove the purple line/indicator (see the following image) of TextField. Is that possible or should I create my own custom TextField to achieve that?

2

Solved

In currently transitioning my app to Jetpack compose and I'm facing some problems to adapt my current color palette in some cases. I have some TextInputLayout on my xml files that inherit the highl...

7

Solved

I am trying to add an end Icon Drawable to my text input layout. I've come across the methods to do so but when I try to implement it, it does not work. Material io says that all that is needed to ...
Deaconry asked 15/7, 2021 at 15:52

5

Solved

In general, most components in Jetpack Compose seem to be very easy to customize. However, the same cannot be said for the TextField. For example, say that I wanted to make something like this: On...

11

Solved

How can I change the colour of the error message that can be set to appear below the text field in a TextInputLayout (via setError(...) – see error state here)? It normally shows as a red colour, w...
Higley asked 14/11, 2015 at 13:46

10

Solved

TextInputLayout seems to always have some extra padding at the top (no matter that all margins/paddings are set to 0): The layout looks like: <android.support.design.widget.TextInputLayout ...
Lynettelynn asked 21/4, 2017 at 11:36

3

Solved

I am trying to add a TextInputLayout with an EditText to a LinearLayout programmatically. My approach: TextInputLayout textInputLayout = new TextInputLayout(new ContextThemeWrapper(getContext(), R...

5

Solved

In my application I am using textfield.TextInputLayout and textfield.TextInputEditText as input text, instead of the usual EditText. This is my view: <com.google.android.material.textfield.Tex...

9

Is it possible to make just the asterisk in the hint red when using a TextInputLayout from the design support library? I have seen information on styling the entire hint, but this is a little more ...

5

Solved

I'm using the above property in my TextInputLayout theme to make the underline color of the TextInputLayout green when activated. <item name="colorControlActivated">#27e905</item> I...
Pyonephritis asked 23/7, 2018 at 10:35

9

Solved

I want to create textfield with hint text in jetpackcompose. Any example how create textfield using jectpack? Thanks

3

I am using ExitText inside TextInputLayout and have enable `` app:passwordToggleEnabled="true" And getting Toggle view as below I want to remove Right Padding of the toggle but somehow not ab...
Bidwell asked 31/5, 2019 at 9:7

8

Solved

Here is how OutlinedTextField code looks like in jetpack-compose: OutlinedTextField( value = "", onValueChange = {}, label = {Text("Input")} ) The default color of the outli...

6

Solved

I want to get a text from the material design's TextInputLayout using a custom end Icon. I tried to do that: TextInputLayout textInputCustomEndIcon = findViewById(R.id.editText); final TextInputEdi...

7

Solved

I have the following AutoCompleteTextView: <com.google.android.material.textfield.TextInputLayout android:id="@+id/offering_type_dropdown_layout" style="@style/Widget.MaterialCo...

12

Solved

I am using a TextInputLayout to show a hint but I am not able to center it vertically. I always get this: And I would like to center the hint vertically when there is no text in the EditText / T...

19

Solved

I'm trying to customize a TextInputLayout with material style. I managed to set the focused state to the colors I want: Using <com.google.android.material.textfield.TextInputLayout style=&quot...

21

Solved

I have to use TextInputLayout of design support library in my project. I want to give space between hint and EditText in TextInputLayout. I set margin and padding in TextInputLayout and even inside...

3

Solved

Is it possible to get different colors in a TextField of Jetpack Compose? Something like with the Text composable with AnnotatedString, but TextField doesn't allow AnnotatedString as input value. I...

3

Solved

I have a vertical linear layout with some input fields. Using TextInputLayout I get a nice flow with labels and built-in error messages. My problem is when I add and remove the error-messages. If...
Sarthe asked 6/11, 2015 at 14:24

© 2022 - 2025 — McMap. All rights reserved.