Questions tagged as 'edittext'

1
answer

How to create a sum method where the result appears in the edit text field [closed]

I am creating an application and I would like the result of the cost price plus profit percentage operation to appear in the sales price result, since the latter can not be edited at the time of saving the data. I ask them to be as specific as p...
asked by 15.01.2016 / 18:46
1
answer

My application saves the data blank, I would like validation to prevent saving empty fields

I would like my EditText field validations to prevent saving null fields. I am a beginner in the area and I ask for everyone's understanding. Thank you very much. import android.app.Activity; import android.app.AlertDialog; import android.c...
asked by 29.12.2015 / 20:25
2
answers

Save user input in edittext

I'm new to Android Studio and would like to save user input to an edittext And even if the user presses the back button or closes the application the typed text stays in edittext Can anyone help me?     
asked by 02.01.2015 / 11:33
2
answers

Hide keyboard with Fragment

I'm doing a mobile application that has screens in fragment with Drawer, and they have EditText , but I'm having a problem that when I click on EditText and then click off, or click on menu does not disappear, and it is difficult...
asked by 07.11.2014 / 19:19
1
answer

EditText SetPosition at the end

I'm trying to make when I click on my Edit cursor position go to the end of the text, my code is as follows: Script public class DetalhesCompraActivity extends Activity { EditText tb_acrescimo; EditText tb_desconto; EditText tb_tot_pago; E...
asked by 30.07.2014 / 21:20
1
answer

line break of an edittext automatically on android

Hello! in my application the client can make a comment with up to 300 characters, but it is bad to do long texts with edittext in only one line So how to break the line automatically? an example is when we will make comments on facebook, the tex...
asked by 06.08.2018 / 00:06
1
answer

How to Identify Characters

I have a class that takes a String and looks 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 a =" "; while(true){...
asked by 23.02.2018 / 15:22
0
answers

Problem to stop import class from EditText

I'm trying to import the EditText class and I can not, what can it be? import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.EditText; import a...
asked by 17.11.2017 / 06:49
1
answer

Error using Long.parseLong to capture value from an EditText to a variable of type LONG

I've created an app that contains only one activity. In this activity there are 3 EditTexts and 1 TextView . I created 3 variables of type long ( l01, l02 e l03 ) to receive the value of 3 EditTexts . MainActivity: pa...
asked by 30.01.2017 / 21:57
0
answers

Problem in EditText within ListView

Hello, I have a problem with edittext within the listview, it will not let me type and it is giving these errors. Follow the errors below: W/IInputConnectionWrapper: beginBatchEdit on inactive InputConnection W/IInputConnectionWrapper: getS...
asked by 16.12.2016 / 12:18