319 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....
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 ...
1
vote
0
answers
32
views
Android few cursive fonts are being cropped on left react native
I have one font which is cursive. This font is visible outside of my TextInput and also outSide of text component in react native IOS but in Android if letter is curved on left it is being cropped ...
0
votes
0
answers
20
views
Unable to delete slash from str in EditText date formatter
I have a date formatter that takes in String input from a text field. It formats correctly. However, I am unable to delete the first "/" it keeps 3 strings in UI when using the keyboard ...
0
votes
1
answer
27
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
...
1
vote
1
answer
110
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
1
answer
47
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
0
answers
77
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
41
views
Android - TextInputEditText text being spelled inverted
I have a TextInputEditText in my fragment and whenever I type a text, it is being spelled inverted. SO if I try and type "Leonardo", it will be spelled "odranoeL". The cursor is ...
0
votes
1
answer
52
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
63
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
50
views
I'm trying to block the paste option in a TextInputEditText in Samsung
I have a somewhat peculiar issue; I'm trying to block the paste option in a TextInputEditText. In fact, this works perfectly on my Pixel and other devices, but for some reason, it doesn't work for ...
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
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
2
answers
77
views
TextInputEditText Hint remains in the background when the field value is set programmatically
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....
0
votes
2
answers
83
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
0
votes
1
answer
61
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
0
answers
42
views
When my activity recreates TextInputEditText all methods (beforeTextChanged, onTextChanged, afterTextChanged ) called pointlessly
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 ...
3
votes
2
answers
625
views
Cursor of edit text changes to black on error
I have a weird bug in my app and I can't quite figure it out.
I set up an edit text and changed the cursor color to white (default was dark blueish). This worked just fine, however as soon as I call ...
0
votes
1
answer
22
views
Why does my device automatically unselect my TextInputLayout/TextInputEditText with an external keyboard?
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 ...
0
votes
0
answers
43
views
Click TextInputEditText always scroll to the end in ConstraintLayout contained by ScrollView when text is long
I want to achieve writing and editing long text like articles in a text box, and the whole page is scrollable. As a result, I use TextInputEditText which has a beautiful style and can scroll up down ...
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 ...
0
votes
2
answers
74
views
TextInputLayout hint position wrong
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 ...
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"
...
0
votes
1
answer
71
views
Changing TextInputEditText's select mode color
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?
0
votes
1
answer
60
views
On some phones, the TextInputEditText component is not displayed with the correct graphical settings. Why is this happening?
I am working on an Android application using Android Studio and I am using TextInputEditTexts to input registration fields. This is the code (Activity.xml file)
<com.google.android.material....
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....
0
votes
1
answer
297
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....
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://...
3
votes
3
answers
242
views
InputFilter for two capital letters and one or two digits, works only if the first input is a digit
I need to restrict the input that can be entered into a TextInputEditText to two capital letters and one or two digits, as in AB01, CS8, XY99 or ND5.
So I wrote this method:
/**
* @return an ...
5
votes
1
answer
131
views
How to prevent/stop/disable android SDK EditText exposed to application class
I have an SDK that contains MYSDKActivity. In this activity layout, I have 1 edit text where the user can enter his card number. Any android Client who is integrating this SDK, can use ...
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
0
answers
173
views
Edit Text Input in Full Screen Android
Can someone help me to put an EditText input Method (android) open in fullscreen mode ?
like this:
Thank You for the attention
0
votes
0
answers
285
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/...
5
votes
0
answers
87
views
Typing inside TextView causes entire layout/screen to "vibrate"
I have the following layout:
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/...
3
votes
2
answers
645
views
How to remove right padding/margin to a TextInputLayout prefix
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 ...
0
votes
1
answer
248
views
Adapting the number of EditText inputs in Kotlin from user defined int value?
I am working on building an application in Android Studio and I have my Edittexts to accept user input (as int) and can pass it to the subsequent activity after clicking 'next'. However, my question ...
0
votes
1
answer
218
views
How to trust disable Paste in Edittext
I want hide option Paste when click double or Long Click Edittext
enter image description here
I tried:
edtSetName.customSelectionActionModeCallback = object : ActionMode.Callback {
override ...
0
votes
1
answer
191
views
I make extension function in android using kotlin and method from the data type, but my extension function not working properly?
I want to make extension function using TextInputEditText and call addTextChangedListener, but when i run the app and using the feature, my app crash. My goal is to create an extension function ...
0
votes
1
answer
463
views
TextInputLayout changing my vector drawable to gray color
I'm updating my app UI UX and I had to change the theme from AppCompat to Theme.MaterialComponents.Light.NoActionBar. Suddenly now icon for my Material widgets having an issue. First I found the ...
2
votes
1
answer
767
views
How to resize drawable in a TextInputEdit
I have a TextInputEditText field to write numbers down. I want to add a drawable symbol to the end of my InputText which already worked.
The problem is, that my text and the drawable are not the same ...
-1
votes
1
answer
276
views
Android EditText hint above text?
How can I create an android EditText, where the hint goes above the text when you tap inside and start typing?
0
votes
1
answer
92
views
TextInputLayout InputType.TYPE_TEXT_VARIATION_PASSWORD showing password by default
I created alert dialog with TextInputLayout programmatically in fragment. I need to hide password by default, TextInputLayout has toggle button and it is working as expected hide/show on click. I ...
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 ...
3
votes
0
answers
261
views
ReactEditText.java , Fatal Exception: java.lang.NullPointerException
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res....
0
votes
0
answers
404
views
TextInputLayout hint label not expanding after EditText is losing focus
I have a TextInputLayout with a TextInputEditText inside. The problem I'm facing is that when I click on the edit text and start writing, the hint label of the layout goes on top of the edit text, ...
1
vote
1
answer
204
views
How to RTL OutlinedBox hint and text on Android?
How to change OutlinedBox hint and text RTL (support Persian and Arabic):
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/phoneNumberLayout"
style="@...
0
votes
1
answer
66
views
TextInputEditText count the entered character as 2 characters
TextInputEditText has a limit on the maximum number of characters entered, for example 30. It is necessary that when you enter the @ character, it counts as 2, i.e. if you enter only @, then you can ...
1
vote
1
answer
417
views
Android TextInputEditText doesn't focus on cursor position
When trying to edit long text inside TextInputEditText, the focus goes always to the bottom, so the top (where actually the cursor is) stays out of the screen and you cannot see actually what you are ...