Questions tagged as 'edittext'

2
answers

Space between Edittext and android keyboard

I wonder if it's possible to put a margin to space the edittext keyboard so it does not look this close: ThexmlofhowIamdeclaringtheEditText:<EditTextandroid:id="@+id/editTextNome" android:layout_width="match_parent" android...
asked by 14.05.2017 / 23:41
7
answers

How to test if an EditText is empty?

I would like to know how do I test if an EditText is empty or populated in Android. For example, I want to make an app that will perform a registration, but there are fields that can not be empty so I would like to know how to do this test, in...
asked by 12.09.2015 / 02:20
1
answer

Android - DatePicker in an editText

Next, I would like a date selector to appear as soon as I click on the editText that I have, but what I found is automatically placing the current date, I want it to be chosen ... Here is the code I've tried so far: public class AtividadePr...
asked by 23.05.2017 / 07:41
3
answers

How to create a top numeric bar on the Android keyboard

Does anyone know how to create in the XML of an EditText that numeric bar on the keyboard?     
asked by 02.01.2017 / 12:33
1
answer

How to change the color of the line below EditText via xml

How to change the color of this line under EditText via xml?     
asked by 30.08.2018 / 11:13
1
answer

Problems with EditText in a listview

I'm trying to get my listview to hold the values placed in EditText , but every time I scroll I lose the data or it multiplies to other fields. Can anyone help? Below is my adapter : public class WorkoutAdapter extends Arra...
asked by 08.07.2015 / 02:06
1
answer

How do I change the text in unity3d with a script that I can not remove?

I have a problem with unity3d and I do not know how to solve it. I have a certain script using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; using UnityEngine.UI; public class CharacterSelector : MonoBeha...
asked by 06.10.2016 / 15:49
1
answer

EditTexts dependent on an Android GridView [closed]

I have two EditTexts, one Discount Value, another Percentage and an ImageButton to update, all are in a GridView. When you click on the ImageButton, the value entered in the percentage field must be converted to Double and assigned to the val...
asked by 02.03.2015 / 15:12
2
answers

Change mask of an EditText at runtime

I have EditText that is used for CPF and CNPJ. I need to use it time as CNPJ and time as CPF. I need to change the mask at run time according to the selected type (CNPJ / CPF), but doing so, an exception is generated. if(TipoPesso...
asked by 03.11.2014 / 18:22
1
answer

CPF / Cnpj Mask in Edittext [duplicate]

I have an Edittext field, I want to know how I can set a mask for it to format the text entered in the corresponding format, CPF or CNPJ, I tried using the method described in this one question however when the text entered reaches 11 digits...
asked by 15.01.2016 / 20:04