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
Related
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.
I am looking to achieve the functionality of an AutocompleteTextView but slightly different. Instead of getting a drop-down list with suggestions i want it to complete the sentence for me.
For example: i type abc and i get completed, with the rest of the text in grey: abc1#etc.etc and then click a button to keep this text or keep writing to filter this even further.
Do you think is is achievable somehow?
I have looked my problem up so far but all the answers i found involved a drop-down list, perhaps i haven't looked deep enough.
Why don't you try to implement a custom view?
Basically, you need to the same things that the AutoCompleteTextView does but instead of displaying N elements into the drop down list you have to add the first option to your EditText.
Have a look at:
TextWatcher in order to see how detect the user input and progress
You can then play with indexes and spannables in order to keep track of the data input by the user and the data that you are suggesting.
One thing that I don't like about this idea is the fact that if you have got:
Germans
Germany
...
You need to type a lot of letters without the possibility to choose something different from the solution that you are providing.
use below example ... i think help you...
http://teamandroid4u.blogspot.in/2012/06/autocompletetextview-example.html
I'm making an application that will store a page of text. This application should read highlighted text shown on the screen and pronounce it for the user. The problem is that when I disable the EditText from editing, I can't set highlight in the EditText anymore.
I use this code for disabling:
contentBox.setKeyListener(null);
And this code for setting highlight:
contentBox.setSelection(0,findNextLineIndex(0));
Any idea? Thanks.
I think you can use android:editable="false" to disable it; then u can get its focus :) cheers :)
Can I do something similar with image below in Android default way?
See example image here
Yes, you make your editbox with correct graphic and then you put another button beside it.
I am trying to figure out how to make a customized android keyboard. I want additional keys in the keyboard like page up, page down, etc. I want these keys to perform the actions that I want them to do. For example,
http://www.addictivetips.com/mobile/hackers-keyboard-is-a-full-5-row-on-screen-keyboard-for-android/
Have a look at the above provided keyboard layouts. How can i do this? Any useful pointers??
Thank you in advance,
Mohsin
You need to create an input method.
Read more about it here, here and here.