Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

When I use this: etID.ShowSoftInputOnFocus = false; the virtual keyboard does not show on focus. That's what I want. But when I start typing on the physical keyboard, the virtual keyboard pops up. ...
Altivo's user avatar
  • 497
3 votes
0 answers
55 views

My editing app handles undo and redo by itself. Having the system handle it on top is just weird: the system undo is perceived as a text change and the user can then undo the system's undoes & ...
Nicolas's user avatar
  • 7,209
0 votes
0 answers
68 views

My Android game (NativeActivity) opens a system dialog with an EditText field for text entry. The dialog opens fine and the text is editable, but when I select some text in order to cut/copy, the ...
Bungles's user avatar
  • 2,329
0 votes
0 answers
38 views

Some background: I have EditText where user could choose AlignmentSpan.Standard span for each line independently. By default line has Layout.Alignment.ALIGN_NORMAL alignment. The problem: When type ...
SerjantArbuz's user avatar
  • 1,294
0 votes
0 answers
92 views

I'm working on an Android feature where users can tag other users using @mentions inside a document or invoice. The goal is to allow the user to type @, followed by a name, and have the app display an ...
Rohan Pande's user avatar
0 votes
0 answers
44 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
0 answers
46 views

This Excel-like layout is implemented using RecyclerView. For each EditTexts, the inputType is text because the requirement is to accepts these 2 formats: Numeric input (separated by comma each 3 ...
anta40's user avatar
  • 6,825
1 vote
0 answers
50 views

When I click on the etMessage (EditText), the keyboard appears, but it is on top of the EditText, therefore a user cannot see what they're writing. When I remove the rvChat (RecyclerView), everything ...
mrprikol's user avatar
0 votes
0 answers
85 views

I am developing an Android application in Java in Android Studio. My environment details are as follows: minSdkVersion: 29 targetSdkVersion: 35 Device: Android device with physical keys Use of custom ...
らむね's user avatar
0 votes
0 answers
46 views

I have recyclerview consisting of edittexts only. Those edittexts have various length. I want to stop scrolling my recyclerview on onViewAttachedToWindow when holder.getAdapterPosition() == vhIndex. ...
Jawegiel's user avatar
  • 141
0 votes
2 answers
51 views

I have an edittext in the form of <EditText android:id="@+id/txt_password" android:layout_width="wrap_content" android:layout_height="wrap_content" android:...
blackmamba's user avatar
0 votes
0 answers
52 views

I want to dinamically change inputType in editText, but after first changing suggestions become disabled. I tried different ways to enable, but nothing helps. This is my code: edText....
Feuer und Wasser's user avatar
0 votes
0 answers
52 views

That's what I tried to do: private fun addImage(camera: Boolean = false) { if (camera) { val intent = Intent(MediaStore.ACTION_IMAGE_CAPTURE) startActivityForResult(intent, CONST....
Feuer und Wasser's user avatar
0 votes
1 answer
187 views

I have text field and it has its own custom input UI on the way. The Problem is i need to use my custom input, and do not want the keyboard to open when focus is gained on the text field. I don't want ...
Santhosh Kumar's user avatar
0 votes
0 answers
46 views

I am not able to find the correct configuration for the behaviour I want. I have a layout with 2 TextView for displaying a date (birth and death date). To set both dates, the user touches (onClick() ...
xerez's user avatar
  • 89
1 vote
0 answers
58 views

Our designer noticed that our cursor slightly overlaps the hint text of an EditText: Upon investigation, we found this appears to be the default behavior for whatever reason, and is even present in ...
Orbit's user avatar
  • 2,415
1 vote
1 answer
48 views

I want to create a custom EditText in Android that shows a blinking red background when there is an error. The idea is to visually indicate to the user that input is invalid. Here is what I have tried ...
Lily Monta's user avatar
1 vote
0 answers
46 views

I have a layout with some EditText, like name, surname, city... I include this layout in another layout a couple of times, so there is two EditText for the name, surname, etc. The problem I face is if ...
xerez's user avatar
  • 89
0 votes
2 answers
44 views

I cannot figure out how to get the EditText to not cover the area where my MenuItem icon button is within this SearchBar. Is there no best way this is handled? Layout snippet: <com.google....
hhaider's user avatar
1 vote
0 answers
264 views

I'm working in a legacy codebase which uses EditText and I'm trying to introduce compose into our application. While playing around with the AndroidView(...) composable I noticed that the soft ...
Sasha's user avatar
  • 11
2 votes
2 answers
168 views

I'm trying to create a custom interaction where a Floating Action Button (FAB) expands into an EditText when clicked, and collapses back into the FAB when clicked again. The behavior I'm looking for ...
alexC's user avatar
  • 471
0 votes
1 answer
57 views

Hints are the text that appears in text fields (Android XML calls them EditText) before any text is entered, and disappears when the user adds any characters to the field. A basic example would be a ...
Zeek Aran's user avatar
  • 685
0 votes
0 answers
37 views

When I set a text in a EditText under Android Java, new lines appear as spaces rather than as actual new lines. The EditText breaks lines once they are too long, but completely ignores new lines ...
Dominik Dabkowski's user avatar
0 votes
1 answer
48 views

I have an EditText that I want users to be able to click on in order to make the cursor appear and then enable writing text. However, I don't want the user to be able to select the text (in the way ...
user26370805's user avatar
0 votes
2 answers
73 views

The situation I am struggling with: One MainActivity and four fragments... ...in a nutshell how to set a lost foccus event on a given EditText field contained on a Fragment? In a simple activity this ...
user23177095's user avatar
1 vote
0 answers
62 views

So Android code includes AddTextChangedListener that implements TextWatcher() and its methods. Android also includes OnQueryTextListener() and its methods. And there are many uses cases listed here ...
AJW's user avatar
  • 1,587
0 votes
2 answers
128 views

I am using this AppCompatEditText like this <com.google.android.material.textfield.TextInputLayout android:id="@+id/tilCountry" style="...
Mohammad Taqi's user avatar
0 votes
1 answer
65 views

My application has password editText. When I enter passwords, the soft keyboard saves them as new words. How can I stop this from happening?
Feuer und Wasser's user avatar
0 votes
1 answer
83 views

I have two EditTexts in my fragment. Both of them have android:inputType set to numberSigned|numberDecimal, since I wish to input only decimal numbers through them, which may be signed as well. The ...
A_Singh7's user avatar
  • 694
0 votes
0 answers
32 views

I would like have an EditText widget input text in the following way Long sentence without wrapping Another long sentence without wrapping etc I need to enable both horizontal and vertical scrolling ...
Bret Joseph's user avatar
0 votes
1 answer
34 views

I need an EditText with vertical and horizontal scrolling and a fixed size, I used ScrollView and HorizontalScrollView but the EditText does not fill the View above, leaving just a small square that ...
Anderson Miranda'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
0 answers
72 views

I'm trying to access all EditText which have been creating programmatically according to an array. As you know Java has getComponents() method which returns array of the components and which allows ...
Toygur Ziya Kutlu's user avatar
0 votes
0 answers
58 views

I have 14 EditTexts in the XML, how do I retrieve the hint from the text where some value is entered and pass that hint from the text and set it in a TextView? I've been trying to solve that problem ...
Mirza Šabanović'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
0 votes
1 answer
119 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
37 views

I use WebView to print the content in an EditText as the sample code below. The print function works well but the different fonts and sizes , that were set in EditText, do not display in the print ...
Fisher's user avatar
  • 519
0 votes
2 answers
152 views

I recently explored an app that appears to be built using a BottomSheetDialogFragment combined with an EditText. This design choice allows for smooth scrolling when the amount of text entered into the ...
Cheok Yan Cheng's user avatar
1 vote
0 answers
40 views

Let's say I have such a RecyclerView adapter consisting of EditTexts only. public class MyAdapter extends RecyclerView.Adapter<MyAdapterJava.ViewHolder> { private String[] textArray = {&...
user avatar
1 vote
1 answer
42 views

I'm trying to change the EditText in my ListView by clicking the FloatingActionButton. I want to editText.setText from an array of strings from my activity for every ListView item public class ...
Quscosog's user avatar
0 votes
1 answer
50 views

I have one edittext <EditText android:id="@+id/selectvalue" style="@style/searchList" android:layout_width="match_parent" ...
Bhaskar Jyoti Dutta's user avatar
2 votes
6 answers
444 views

In my Android activity, I have an EditText with other layouts before and after. When I click in the EditText, the soft keyboard is open and the view is scrolled just enough so that I can see the ...
Laurent D.'s user avatar
0 votes
1 answer
26 views

In my layout there is EditText with android:maxLines="4". And when text exceeds 4 lines, strongly last 4 lines are shown in EditText. This is by design. But how can I show 4 and half lines? ...
Alexey's user avatar
  • 3,202
0 votes
1 answer
120 views

Is there any way to create a textfield in java that will look like one in the picture below? i want know if i can extends EditText and create my own using custom EditText like floating label EditText ...
Cripple Sd's user avatar
0 votes
2 answers
311 views

When I use inputType as "textUri", Suggestion text input is not displaying. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://...
Shadow's user avatar
  • 6,919
0 votes
1 answer
56 views

I have a login screen with two edit texts username and password. Once I fill those edit texts and I navigate to register screen using: navController.navigate(R.id.registerFragment); and when I come ...
xeniosth19's user avatar
0 votes
2 answers
68 views

I can't change background color of error text box color. Want to change the background color of error box not text color. The way i tried to set setErrorTextColor, setErrorColor, setBackGroundColor ...
Dhileepan C's user avatar
0 votes
0 answers
102 views

I have an input field where I set the data by using adb shell and I want to know if the adb shell input text is completed or not. So if it is completed then I want to write some logic. For EditText, ...
sridhar venkatesan's user avatar
0 votes
1 answer
91 views

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 ...
Layla98's user avatar
  • 11
0 votes
1 answer
227 views

I have to validate the EditText field in android in real time without clicking the button. I have tried the validation with the requestFocus() method and setErrors() method but it gives the error ...
Huzefa taibani's user avatar

1
2 3 4 5
242