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

The EditText input is limited correctly to 7 characters using InputFilter.LengthFilter(7), and that part works as expected. However, I'm having a strange issue: when I type into the EditText inside a ...
Fiqih Hasroni's user avatar
0 votes
1 answer
118 views

I'm trying to implement a text watcher with comma and dots but i couldn't find a solution. Here is what im trying to do if user input 10000 i need to show this in my edittext as 10.000 and if user ...
Berkay's user avatar
  • 11
0 votes
1 answer
49 views

I have implemented a TextWatcher for my EditText txt_height!!.addTextChangedListener(object : TextWatcher { override fun beforeTextChanged(charSequence: CharSequence, i: Int, i1: Int, i2: ...
Marduk's user avatar
  • 139
0 votes
0 answers
55 views

I know that limiting the text length of EditText can be done using the maxLength attribute in xml or using InputFilter using the below approaches Using xml android:maxLength="10" Using ...
varunkr's user avatar
  • 5,552
1 vote
1 answer
610 views

I am loading editText on click of fab button in recyclerview. I want to setText on TextView in the same row of recyclerview entered in editText. Currently the text is setting from 2nd textview and ...
Abm's user avatar
  • 311
0 votes
1 answer
72 views

I have a form with two editext and condition is only one should be enable when we enter value to any of edittext e.g We have 2 edittexts ...Edittext1 and Editext2 case 1: When we type edittext1 then ...
MKE SIRIES II's user avatar
0 votes
1 answer
536 views

I am having an EditText in a TTextInputLayout as a Row_item for my recycler view, On the click of a button I am incrementing the count value in that recycler view and adding the edit text views in the ...
Manish Rajpurohit's user avatar
1 vote
2 answers
1k views

Here, I have to show currency decimal separator and thousands separators as per the given input like: private var decimalSeparator: Char = '.' private var thousandSeparator: String = ",&...
Kiran's user avatar
  • 31
3 votes
1 answer
81 views

I wrote the code below to figure out how onTextChanged() method works: override fun onTextChanged(string: CharSequence?, start: Int, before: Int, count: Int) { Log.d(TAG, "...
Vsevolod IV's user avatar
-2 votes
1 answer
163 views

I have to create a comma-separated array. So after 10 comma edittext should not accept the text or latter enter by user <- I have to do this. Here's the code I am using. but it goes to infinite ...
Himani's user avatar
  • 460
2 votes
1 answer
54 views

I'm working on a simple android app project for myself. I found an article that made me decided to use TextWatcher. So simply, I add TextWatcher into my code. But here's the thing. I have designed 2 ...
Anne's user avatar
  • 31
4 votes
3 answers
1k views

I faced the following problem: I need to implement the solution for the case when the phone should be entered to the EditText. This phone should have non-removable part and last four numbers should be ...
Sergei Mikhailovskii's user avatar
0 votes
1 answer
58 views

I am working on EditText where I am displaying pre filled country code in start lets say "+971", what I want is that if user trying to click and edit in EditText, he should not edit or ...
Usman Khan's user avatar
  • 4,033
2 votes
0 answers
186 views

I have an EditText field in my application and have a TextWatcher associated with it. The afterTextChanged() event callback gets invoked even when the user does not tap on the EditText to edit it. I ...
Ian Bell's user avatar
  • 573
1 vote
1 answer
263 views

I want to listen to TextView text changes in my dialog, So I am using TextWatcher like below: final View layout = activity.getLayoutInflater().inflate(R.layout.popup_history, ...
Chaitanya Karmarkar's user avatar
0 votes
4 answers
1k views

I want the user to change some device settings, for example run an alarm after X seconds (default 5s). I want the user to be able to type in what they want (number value from the edit text), but if ...
testuser111's user avatar
0 votes
2 answers
161 views

What I have: I have an EditText which accepts decimal input and I setted the default value in the XML to 0.00 (if there is no input yet) If the user press 1, then the value change to 1. If he needs to ...
Félix Maroy's user avatar
  • 1,497
0 votes
1 answer
40 views

I am developing an app with 100's of textfields and editfields. In a lot of them I have used textwatcher to listen to changes and update other textfields. I dont have much choice on this matter as a ...
ACE's user avatar
  • 1
1 vote
2 answers
1k views

In Android application developed using Kotlin, there have an EditText which accepts number only which is considered as USD. The input needs to be formatted into 2 decimals so that the input needs to ...
Joseph's user avatar
  • 1,078
1 vote
2 answers
192 views

I have the following issue.I'm having an activity,part of an animal shelter app, where an user has to enter or edit pet-related data like weight,name and breed.What I want to achieve is to show a ...
Crimson Sun's user avatar
2 votes
1 answer
3k views

I have spent many hours looking for a solution to this. I cannot figure out why this is a null object, and I am not sure what I am missing. If I try to make any changes to the code, it throws errors ...
Wyatt Duberstein's user avatar
1 vote
1 answer
107 views

how to keep button disable any editText Empty ? i've try with implementation 'androidx.core:core-ktx:1.1.0': txtEmailOrNoPhone.doOnTextChanged { text, start, count, after -> if (text....
Afdal's user avatar
  • 665
0 votes
0 answers
131 views

In my App I have a few edit texts for dates I then Have a text watcher to force the format of DD/MM/YYYY I also have a a few lines of code to automatically enter the current date Auto Date code ...
Ruben Meiring's user avatar
1 vote
0 answers
30 views

I'am using TextWatcher and onTextChanged, but when my screen scrolled it's provoke my function in editText change. holder.editTextCrt.addTextChangedListener(new TextWatcher() { boolean mToggle = ...
Budi Mulyo's user avatar
1 vote
0 answers
242 views

I am using Phone Number Formatting TextWatcher to format number according to given locale. my App support multiple language and i want to format phone number according to user selection like Uber app ...
shafaq ahsan's user avatar

1
2 3 4 5