How to create a custom view for EditText? - android

I need to have an EditText where the user will enter a password.
The problem is that it has to look a certain way:
What I did is - I used EditText for each separate digit, however I don't think this is the right solution. Is there a way I can use only one EditText and make it look like that? Is there any other approach I can use?

Related

AutoFill EditText Android

I'm trying to create a search bar like.
I have to use a particular autofill, infact I can't use a dropdowns menu.
For example if I write Noce the edittext will have to suggest Nocera in the same editText, like this.
but if the user write something else the pointer have to the end of the typed text (in this case Noce) and the hint have to disappear.
Is there some library that allows me this?
Thanks for the help.
There's this library that will fulfill some of your requirement called Auto Fill EditText
Finally I have solved this using two EditText in the same position. The first one is a normal editable EditText, the second one is not editable from the user but is used to show the hints programmatically.

Splitted EditText for every character in Android

I need to create custom EditText so it will look like this:
I need it to be single EditText. Is it possible to do it, or do I need to create EditText for every character?
Yes it is possible! create multiple edit text's depending on the number of characters you want to accept as input and make sure to limit the size of each edit text to 1
android:maxLength="1"
You can set the width of each edit text and place them horizontally one after the other
You can create custom EditText by extending it. And you have to implement addTextChangeListener and their you can draw whatever you want. But No need to re Invent the wheel
And you can also use some build in customView like
PinView
Another
Also have a look at this

Showing password in EditText like Linkedin "Style"

I'm developing a APP for Android for educational purposes, and I see this in Linkedin APP. I like it!
Is a eye, and function is similar to CheckBox.
How I can do this?
Is a customized EditText?
Is a customized CheckBox inside EditText?
The password box is probably a Horizontal Linear Layout with a background border surrounding it. For the edittext, it seems like a custom styled one, you can look here to figure out how to implement one.
Edit:
As for the checkbox, look here
just pass null to setTransformationMethod to show the password like --->
yourEditText.setTransformationMethod(null);

Keep a part of edittext uneditable

In my app I have a couple of checkboxes, that when checked combine the first part of an edittext. In the same edittext I would like to allow the user to append some text, while disallowing to delete the built text.
This is how it looks
[This part is build from checkbox combination, and can change in real time][This part is user defined]
Now is there a way to not allow the user to modify the first part of the edittext, but still allow the app to change this text?
You can certainly create a TextWatcher object and add it to your edittext. In your textwatcher, you can store the constant text information in an instance variable. Then, you can fill in the onTextChanged() and afterTextChanged() methods to create the type of behavior you are looking for.
For example, you can check the cursor position (using editText.getSelected()) to see if the user tried to change some of the text that shouldn't be changed-- if they do, then have some code to handle the case.
I know this isn't the best answer, but I don't yet have privilege to make a comment. Hope this helps!

How to make an EditText Box in android?

I would like to make my application ask the user some informations via something similar to VB.NET's inputbox. How can I do this??? I don't want to have a permanent control on the screen, I just want to make it appear when I need it. Actually, just as an inputbox.
dude see this link u will get use of EditText http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-edittext-controls/
Use an edittext box, very similar to a textview. examples can be easily found

Categories

Resources