320 questions
0
votes
1
answer
67
views
How can I clear focus from TextInputEditText when tapped anywhere else on the screen
I have this TextInputEditText in which the cursor remains visible even when I tap somewhere else on the screen. Is there any way to make the clearFocus() applicable for whole screen?
<com.google....
51
votes
31
answers
77k
views
InflateException when using TextInputLayout
I'm trying to use TextInputEditText from Material Design (https://github.com/material-components/material-components-android/blob/master/docs/components/TextInputLayout.md) and I'm getting runtime ...
0
votes
0
answers
41
views
Can I use TextInputEditText without TextInputLayout?
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 ...
0
votes
0
answers
76
views
Android Talkback, need help figuring out how to ignore the helper text for textinputlayout
I'm trying to write a custom AccessibilityDelagate for a TextInputLayout; this contains a TextInputEditText that has a helper text labeled as "required indicating that it is going to be a ...
0
votes
1
answer
26
views
Android TextInputEditText Multiline
Iam looking for a TextInputEditText to support multiline text.
The TextInputLayout implemented in an alertdialog.
I tried everything... How to do ? :/
Thanks a lot!
example of my code:
val editText = ...
1
vote
1
answer
41
views
Why is the Drawable on the TextInputLayout not clearly visible?
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
...
0
votes
0
answers
73
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
46
views
How to remove TextInputEditText error underline (not the base underline) in Kotlin. What is the name of the property?
I need to remove the error underline in a TextInputEditText in Kotlin, but is not the base underline. It shows in red below the text over the base underline when the text has some syntax or spelling ...
0
votes
1
answer
168
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
1
answer
91
views
Typed text is not displayed in notifications
I created an application that allows you to enter the content of the notification and select the date and time at which the notification should be displayed. Everything works fine, except that the ...
0
votes
2
answers
79
views
Change TextInputEditText Hint Style
I want to change TextInputEditText type FilledBox
When before Typing hint needs style Bold and color #FF0000 (RED)
When after Typing hint style regular and color #000000 (Black)
How Can I do
9
votes
1
answer
11k
views
Setting on click listener to TextInputEditText drawable Right/End android studio
I am having a Text Input Layout with Text Input Edit Text inside. The Text Input Edit Text has a Drawable at the end. What i want to achieve is make the drawable at the end do something when it is ...
4
votes
4
answers
6k
views
TextInputEditText, how can align hint to the top margin
I have some trouble with a TextInputEditText and his hint message if I use the last material library version com.google.android.material:material:1.2.0-alpha02 .. I set 5 lines scrollable ...
10
votes
3
answers
3k
views
TextInputLayout move the hint label and change it's background color when focused
I am trying to customize materials TextInpuLayout.OutlinedBox and TextInputEditText.
My current state is like following image
What I want to do is remove the background of the hint label so that it ...
3
votes
1
answer
390
views
While Editing in TextInputEditText, App crashes in Android version 8.0 Samsung Exp 9.0
This is okay in other versions of ndroid but this error occurs in my android version 8 (Oreo) Samsung Experience 9.0.
Every time when I try to edit some existing data inside val lyricsEditor = view....
0
votes
1
answer
453
views
Design Layout not shown after using TextInputLayout and TextInputEditText
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....
1
vote
1
answer
428
views
How can I get input text from textInputEditText from custom view? Android Kotlin
This is my custom view:
<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://...
0
votes
1
answer
58
views
Multiline TextInputEditText with height wrap_content not restoring size
If have a following layout in xml. It's a part of bigger layout
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layoutInputNewText"
android:...
0
votes
1
answer
295
views
Storing formatted text in Room Database
I downloaded a library. It is a Rich Text Editor Library. But when I replaced it with my old EditText, I couldn't access the text-related properties of my EditText. Like doAfterTextChanged, myEditText....
0
votes
1
answer
123
views
Error inflating class com.google.android.material.textfield.TextInputLayout: Binary XML file line #125
Binary XML file line #125 | Error inflating class
I got this error with this code:
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/group_ll"
...
12
votes
6
answers
21k
views
Android TextInputLayout Password toggle not visible in new support library
I have compiled with following design library and it is displaying password HIDE/SHOW button at the right of EditText
compile 'com.android.support:design:24.2.1'
<android.support.design.widget....
0
votes
0
answers
284
views
How to add elevation to the textInputLayout in android?
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/...
0
votes
1
answer
771
views
How to remove padding for the bottom line of the TextInputEditText
I'm trying to remove all padding of a TextInputLayout and a TextInputEditText, but with padding=0dp the line at the bottom of the TextInputEditText keeps it padding left and right. How I can remove ...
10
votes
4
answers
10k
views
Customize Text Input Layout
I want to apply a border to a TextInputLayout as shown in the image.
Right now, it looks like this:
But, I need it to look like this (i.e. label is placed within border):
The code that I have ...
1
vote
0
answers
56
views
setError icon overlapping the outline of TextInputLayout (TextInputEditText)
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 ...