Most voted "edittext" questions
An Edittext is an overlay over Textview that is configured to be editable. Basically a predefined subclass of Textview that includes editing features, being a widget component for Android development that simulates a text box.
Learn more…86 questions
Sort by count of
-
0
votes2
answers1997
viewsSave user input in edittext
I’m new using Android Studio and would like to save the user entry in a edittext And even if the user presses the back button or closes the application the typed text remains on edittext I wonder if…
-
0
votes1
answer360
viewsWhy does the app stop when I leave the field empty?
public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle…
-
0
votes2
answers766
viewsSearch randomly in listview through editext on android?
Hello, I’m very new in programming, actually enthusiastic, look at me I’m kind of editext search the letter or word in the text so that for example if in my string is written "Mr. Jose Ventura" and…
-
0
votes0
answers93
viewsMake a condition to apply mascara to an Edittext
I can’t make a condition to apply mascara in an editText anyone help me please ? final EditText tel = (EditText) findViewById(R.id.phone); // Armazene seus TextWatcher para posterior uso //telMask =…
-
0
votes0
answers66
viewsError printing given in an edittext
I am stuck to a problem, I have to receive values in three radiogroups to make the calculation of more 3 edittext along with the result of a method, the method works perfectly but the final…
-
0
votes0
answers51
viewsEdittext problem within Listview
Hello, I’m having trouble in edittext inside the listview, it does not let me type and is giving these errors. Follows errors below: W/IInputConnectionWrapper: beginBatchEdit on inactive…
-
0
votes1
answer821
viewsWhen entering data into Edittext, do one Textview and one Edittext start moving?
At first everything is normal: Something really strange happens when I insert some content in Edittext: A Textview and an Edittext start to move to the right, as I insert characters, whatever they…
-
0
votes1
answer544
viewsHow to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"?
How to create a mask for monetary value in an editText, real in case it format this way to save in the database "20.99"? 1.99 20.99 300.99 1000.99 10000.99
-
0
votes1
answer49
viewsMy application saves blank data, I would like validation to prevent saving empty fields
I would like my Edittext field validations to prevent saving null fields. I am beginner in the area and ask for everyone’s understanding. Thank you very much. import android.app.Activity; import…
-
0
votes1
answer997
viewsTo create a summation method where the result appears in the Edit text field
I am creating an application and would like the result of the cost price operation plus profit percentage to appear in the sales price result and the latter cannot be edited at the time of saving…
-
0
votes2
answers5485
viewshow to put monetary mask for Edittext in an Android app?
how to put monetary mask for Edittext in an Android application only with numerical values without the R$, ie print in Edittext 2.99? If you have an example.…
-
0
votes1
answer133
viewsEdittext Multiline with lines separated by dashes
All right? I’d like you to help me with something: I would like to have an Edittext with Multilines divided into lines. What I mean is this: When we create a multiline Edittext (let’s put as an…
-
0
votes1
answer172
viewsHow to Identify Carcter
I have a class who catches a String and look at the first character and if the character is empty (" ") it returns me the first letter. public String textReturn(String x){ int v1 = 0,v2 = 1; String…
-
0
votes1
answer1558
viewsline breaking of an edittext automatically on android
Hello! in my application the client can make a comment with up to 300 characters, only it is bad to make long texts with edittext only in one line then how to break the line automatically? an…
-
0
votes1
answer4041
viewsBlock and unlock editing an Edittext
In the code snippet below I disable the freight value edition when the freight type is SIF put the code snippet Library.editTexPermission(edtFrete, true); that should release editText edition does…
-
0
votes1
answer472
viewsSend Recycleview Data to Activity
Well, I am new to Android development and I would like to know how to step the value of the option selected in Recycleview to an Edittext that is in another Activity
-
0
votes1
answer107
viewsHow do I work with LONG "data" inserted in an editText?
I tried to pass numbers that would be inserted in 3 editTexts for 3 variables long that I created: l01, l02, l03. To that way work them and make a very simple account. Mainactivity.java: package…
-
0
votes1
answer514
viewsI can’t get a Textview to display the content in an Edittext!
I created an app where in its layout contains a Edittext and a Textview. The initial content of Textview is: "nameless". I would like the content of Textview was changed when I inserted something…
-
0
votes1
answer59
viewsUpdate Sqlite with Edittext Android
Good morning gentlemen, I’m trying to update my Sqlite database through my Edittext but it shows error, someone could tell me what I’m missing ? public void insererazaosocial (SQLiteDatabase db){…
-
0
votes1
answer66
viewsMask of entry of measures in metro
I am developing an Btus Air Conditioning Calculation App, which simply receives units of measurements and recommends an air conditioning capacity suitable for the environment. The problem is I want…
-
0
votes0
answers8
viewsScrollview - Scroll codeTo not working properly
Well, according to the title, I’m having trouble solving a problem in my code, the line to textView that Scrollview brings through scrollTo code. When I press the button he does not show me the line…
-
0
votes1
answer143
viewsError using Long.parseLong to capture Edittext value for a LONG variable
I created an app that contains only one Activity. In this app there are 3 Edittexts and 1 Textview. I created 3 variables of the type long (l01, l02 e l03) to receive the value of the 3 Edittexts.…
-
0
votes1
answer178
viewsDynamic total according to Android Numberpicker
I am using Numberpicker so that the user selects the quantity. Each numberpicker has a total that already appears on the screen according to the amount selected by the user. Example: Numberpicker 1…
-
0
votes1
answer262
viewsEdittext already completed after user login using firebase
Hello! I’m having second thoughts about a process I’m having trouble doing. I have the following screen, and I wanted the user Edittext is already filled with the user’s name or the user’s email.…
-
0
votes2
answers841
viewsRetrieve and calculate programmatically generated Edittext values
I am creating an app pqra calculate an arithmetic mean of N values. There is a button add, when clicked it will generate a EditText programmatically. And it will have a calculate button, when it is…
-
0
votes0
answers142
viewsProblem stop importing Edittext class
I’m trying to import the Edittext class and I can’t, which may be? import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View;…
-
0
votes2
answers105
viewsBackground Edittext Alpha (transparency)
I would like to know how to make the Edittext fund transparent, in this way: I tried in the following ways, but without success: edt.xml <?xml version="1.0" encoding="utf-8"?> <shape…
-
0
votes1
answer547
viewsProcessing decimal places Edittext
I need to set a number of decimals for a EditText on Android. For this I used a InputFilter as shown below: public NumeroFormatado(int digitsBeforeZero,int digitsAfterZero) {…
-
0
votes2
answers117
viewsEdittext.gettext on a null Object Reference
I am trying to add records in the Firebase Realtime Database, through a Alertdialog, but the Edittext components do not let me abstract the component information. Below is the section of java..…
-
0
votes2
answers345
viewsEdittext vehicle mask
I would like to know how to create a mask in an Edittext in ABC-1234 format. I’m trying something as an example below, but still unsuccessful. public abstract class PlacaVeiculoMask { public static…
-
0
votes1
answer1140
viewsEdit Zebra ". lbl" Java printer file
I have a problem that is the following, I have a system where the user will upload a standard label, made in Zebra Designer (ex: etiqueta.lbl), for your products and according to the product that it…
-
-1
votes1
answer110
viewsHow to create a standard typing format in an Android Studio form?
Type: abc@def Must have a (@) in the middle between the seven characters typed.
-
-1
votes1
answer85
viewsI’m not able to take the Edittext value of the aux variable and compare in the if
When you type 0 or 1 of Edittext is to enter IF and does not enter. private TextView nome1; private TextView nome2; private EditText vitoria; private Button salvar; private TextView primeiroLugar;…
-
-2
votes1
answer168
viewsadd a listener to editText
how do I make an action be executed, every time the user type some letter in editText, I searched but did not find what wanted, if someone knows at least a hint of how to search already help
-
-2
votes2
answers604
viewsProblems receiving money as input in edittext
I’m building an app in Android Studio that gets a value inserted in a edittext, passes him on to BigDecimal and performs some operations. In the field to enter this value, I marked…
-
-4
votes1
answer558
viewsHow to read and display data in Android Studio?
How to read the data typed by the user in an Edittext and display in a new Activity in Android Studio? I’ve tried a few ways, but when showing it in the other Activity only appears "false".