Questions tagged as 'edittext'

0
answers

Keep focus on edittext after pressing Enter

I have a barcode reader that does the action of placing text in edittext and pressing enter automatically, implemented the function while reading but would like the focus on edittext to continue. My code: final EditText codBarras = (EditText)...
asked by 20.04.2018 / 16:12
1
answer

EDIT TEXT - ANDROID

I have 3 edit texts in my project, I set the maximum d characters for each one, I would like to know how to do it when it reaches the maximum it gives focus to another. Ex: the first one has at max 2, then I type 10 and it already gives focus to...
asked by 31.01.2018 / 05:23
1
answer

How to create a mask for monetary value in an editText, real in case you format this way to save in database "20.99"?

How to create a mask for monetary value in an editText, in case you format this way to save in the database "20.99"? 1.99 20.99 300.99 1000.99 10000.99     
asked by 04.10.2017 / 13:18
1
answer

Problem in editText within a ListView [closed]

Hello,IcreatedalistofquestionswithinaListView,Icreatedalltheprogrammingquestions,I'mnotdoinganycomponentinthelayout.xml,itjusthasaframeLayout,butthemomentIclickonedittextitdoesnotletmetype,Iclickandthekeyboardcellphonepopsupanddisappearsquickly...
asked by 05.12.2016 / 17:52
0
answers

AutoCompleteTextView display items that have an accent when typed without an accent

I have a AutoCompleteTextView , defined as your adapter I have a list that gets the name of cities like, for example, São Paulo, but if I enter it in the field the value Sao Paulo, without the accent, it does not display any item , that's...
asked by 02.02.2016 / 19:12
0
answers

How do I maintain the position of a ListView when an item is changed?

How do I maintain the position of my ListView , which contains EditText , when the value of this EditText changes? Calling the class that searches the database: /* Instancia da classe repositorioProdutos*/...
asked by 04.03.2016 / 18:45
1
answer

Retrieving typed text in run-time EditText

In my project I have some EditText being generated at run time, the EditText number is variable. I need to retrieve the typed texts and store them in different variables, and then create a Json object with it. Here is the method I use to...
asked by 13.11.2015 / 18:42
1
answer

Lock and unlock editing of an EditText

In the code snippet below I disable the freight value edition when the freight type is SIF, but the% code_code that should release the editText edition does not work in the following situation: Select SIF and then select FOB. Question How can I...
asked by 13.09.2016 / 14:06
1
answer

Why does the application stop if the field is left empty?

public class VigMetBiapsb extends Activity { int porctAlt, porctLarg; double edtVaoNum; EditText edtVao; Button calcBiapsb; TextView secaoBiapsb; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceSt...
asked by 24.11.2014 / 20:45
2
answers

Recover and calculate programmatically generated EditText values

I'm creating an app to calculate an arithmetic mean of N values. There is an add button, when it is clicked it will generate EditText programmatically. And it will have a calculate button, when it is clicked, it should show the average...
asked by 01.11.2017 / 05:07