Android :: How Can I Select What Soft-keyboard?
Jan 25, 2010How can I select what soft-keyboard an edittext will load?
View 3 RepliesHow can I select what soft-keyboard an edittext will load?
View 3 RepliesI would like to play around with some ideas and develop a soft keyboard for Android to replace the default one.
Is there any general information about soft keyboard development for Android out there?
Any best practices or guidelines?
Can I do with my keyboard application pretty much anything I could do with a normal Android application?
Can I do HTTP connections to synchronize keyboard data with a cloud DB and other phones I have?
Can I open other windows/screens from a key press, e.g. to display a custom input interface different to a normal QWERTY one. If that doesn't work, can I use a pop-up dialog instead?
I have a tabbed view with one Activity per tab, and when I switch from the first tab, which has a TextView, to the second tab, which only shows a clickable list, the soft keyboard is still there. I want it to go away.
I tried this:
CODE:.............
But this does not work, because there is no relevant view to provide, as there is no View on the screen that takes keyboard input.
I'm using an MK802 mini PC. I don't have a USB keyboard yet.
When I plug in a wired USB mouse, I can use that to click on the on screen soft keyboard.
But when I plug in the wireless dongle for a USB mouse, the Android soft keyboard doesn't show anymore (I guess this is because the wireless dongle supports both keyboard and mouse, and tells Android a hardware keyboard is available, so Android doesn't show the soft keyboard).
Any way to ignore this and always show the soft keyboard? Or another keyboard I can download which will always show?
I have a layout which has one large EditText view at the top + a bunch of buttons at the bottom. The EditText is made to shrink and expand when the ime is activated/deactivated by using adjust_resize. The buttons at the bottom are pushed up above the ime.
I would like to hide these buttons when the ime displays, to provide enough space for the EditText view.
I have so far tried the following:
subclassed EditText and provided the activity the option to register a callback on the view's OnSizeChanged.
Used this callback to change the visibility of the buttons (actually the layout container) to GONE.
This work OK and does hide the buttons when the ime pops up. However, the EditText does not expand into the new available space. Furthermore, when the ime is disposed off, the EditText field is now bigger than it was originally, pushing (the now showing) buttons outside the screen.
I should also add that when typing the first letter into the view, and the ime displays the word options, the screen is redrawn and the EditText fills the vacant space. how to get this to work? Or even better, is there a simpler solution to my requirement? In my view, scrolling is not a good option.
I have an EditText control that does not pop up the soft keyboard when the user touches it. The thing is, that I have a number of other EditText controls elsewhere in my application that all work fine, and I cannot see anything really different about this one.The code is a bit complex to post here, but I was wondering if anyone knows of any reasons why the soft keyboard would not appear in some cases.
View 3 Replies View RelatedI am interesting in integrating an arabic keyboard to the android system. I proceeded as follows: I have modified the xml and the layout in the package softkeyboard by replacing English letters and their codes by the arabic one.Of cource I created 2 new directories in softkeyboard: xml-ar and layout-ar After rebuilding the system , I don't find the new softkeyboard.
View 4 Replies View RelatedI have One AutocompleTextView and I want to make the virtual keyboard disappear when he hits "DONE" at the AutocompleTextView. So far, the buttons "NEXT"/"DONE" do nothing at all Unfortunately I found no resources addressing this problem.
View 1 Replies View RelatedI've got a problem with my application in that the soft-keyboard is not being closed unless the user pushes the "back" button.I use several layouts which I load using the setContentView method of the application. Some layouts contain multiple EditText fields. The soft-keyboard pops up correctly when the entry boxes are being clicked, but never gets dismissed, even after I switch to a new layout using setContentView (instigated by on-screen push buttons).I found a way of apparently removing the keyboard using the "InputManager" class but how exactly does that work if I don't know which entry field opened/currently owns the keyboard?Is there a way of possibly invalidating a whole layout which would perhaps cause all resources (and hopefully the keyboard) to be cleared? As said before, I currently just use setContentView to load the next screen.
View 4 Replies View Relatedif application has EditText widget and user clicks on it, a qwertysoft keyboard appears. how do you get a numeric, 12key, or phone soft keyboard to appear instead. (I have searched documentation but I cannot find solution.)
View 2 Replies View RelatedHow can I set numeric-only soft keyboard option for a text field? When I set the input-type to "number" it brings a soft keyboard which is actually a alpha-numeric one but already switched to numeric mode. What I want is a pure numeric soft keyboard with big numbers (no alphabets at all). I've already seen this in other applications and but don't know how to do it.
View 6 Replies View RelatedI have a form that is working fine with the "Next" flow order when using the computer keyboard with emulator (and probably with the keyboard on the G1) but not with the SoftKeyboard with 1.5.Some fields indicate "Next" with this keyboard, some go to the correct field and others don't.Two of the fields are text and they only give a carriage return instead of "Next."My numeric fields give the proper "Next" key. Use of the SoftKeyboard is a little underdocumented so far (if there is a hidden doc online somewhere please provide me a link to it). There are also some added fields under 1.5 that I have asked about previously but received no answer.These appear to have something to do with the Soft Keyboard.Though these can be set programmatically I haven't seen the proper way to set these flags using XML. This field is the one that replaces "Numeric" which deprecated.
View 3 Replies View RelatedSo Sony appears to have included their own IME with their xperia phones.I have an edit box for numerical input that i have specified as number numberDecimal|phone It allows for easy number entry and allows users to enter in decimal numbers.However the IME in the xperia phones is missing the decimal key. Is there a way to specify it should only be using the android IME?Can I specify resources for specific phones similar to how I can control resources for versions of android?
View 9 Replies View Relatedis there a way to enforce the soft keyboard throughout the lifetime of an Activity? I tried setting stateAlwaysVisible in the Manifest.xml as well as the counterpart.
View 6 Replies View RelatedThis is probably very easy but I just don't know how to close the Soft Keyboard after user hits "search" key on the soft keyboard.Could someone help me out?Currently my code listens for key press particularly enter or the search key.
View 5 Replies View RelatedHow do i disable the SoftKeyboard?
View 3 Replies View Relatedhow to use the IMF to design a soft keyboard. Please point me to some resources that will help me understand how to do it from the ground up. Something other than the SDK sample
View 4 Replies View RelatedIs there a way to create an app specific soft keyboard on Android? After reading about InputMethodService docs and checking out alternative keyboard apps out there, I figure the alternate keyboard can only be configured for system wide usage (through Settings -> Locale and Text).
If the answer to above question is no, then is there at least a way to load a custom dictionary and override the default dictionary of the system keyboard (only when my app is in use)? That will help in giving very relevant suggestions to the user when he has only tapped couple of keys.
I am developing an android application where we are using WebView to display Web page being served from Web Server. Everything is working fine except with the problem that when i am using the soft keyboard and switched to numeric key entry and move from first field to next field, the keyboard layout automatically changed to alphanumeric.
Is there any way using which i can pull up virtual keyboard in numeric mode only when i need to enter numbers only?
I have a custom View which accepts onKeyDown and onKeyMultiple events. Works well with Android soft keyboard, but it has issues with HTC soft keyboard, like the one found with HTC Hero. Specifically, problem is when a user selects an "alternate" key from a small pop-up window following a long-press on a key. With Android soft keyboard, my View is receiving onKeyDown event only from a selected alternate key. With HTC soft keyboard, onKeyDown event is received for both the original key (the one that was long-pressed), and the alternate key selected from a pop-up menu. I can't figure out a way to determine if certain key events need to be cancelled or not. (I am dealing with Android 1.5).
View 3 Replies View RelatedIn my android application, I need number and letter key in the same view, not need number and letter switch key. for example let it looks like computer keyboard, Is it possible to do it?
View 2 Replies View RelatedI am building from source and running in the emulator. I would like to know if the soft keyboard has support for operating in Landscape mode. Portrait appears to work fine, but when switching the emulator to Landscape, it appears to be working on the premise that a hard keyboard is in operation. Is it possible to use the soft keyboard in Landscape and how would I enable this if so?
View 3 Replies View RelatedHow can I trigger the software keyboard and add listeners to it's keys?
View 2 Replies View RelatedI have a shared preference that is being accesed via an EditTextPreference. I am in the process of porting this application to a device that does not have a hardware keyboard for text entry. When the time comes to modify the EditTextPreference, there is no soft keyboard that becomes available, and I am at a loss as to how to invoke the soft keyboard for text input to edit this preference.
View 1 Replies View RelatedI need to be able to hide the soft keyboard in response to clicking a button. I have seen numerous posts on this subject and it seems that the solution is to use the InputMethodManager, but I have been unable to get it to work for me.
View 1 Replies View RelatedI am developing an android application where we are using WebView to display Web page being served from Web Server. Everything is working fine except with the problem that when i am using the soft keyboard and switched to numeric key entry and move from first field to next field, the keyboard layout automatically changed to alphanumeric. Is there any way using which i can pull up virtual keyboard in numeric mode only when i need to enter numbers only?
View 1 Replies View RelatedI have a TextView and a search button on an activity. When I press the enter key, I want to do something and then dismiss the soft keyboard programatically. I have set the TextView to be single line by using: android:singleLine="true", which moves the focus to the next component when you press the enter key 1. How do I trap the enter key? A TextWatcher? An OnKeyListener? 2. How do I dismiss the soft keyboard programatically?
View 3 Replies View RelatedMy Android app uses a GLSurfaceView so that I can draw to screen directly from native code. As part of the app, I invoke the Android softKeyboard when necessary to receive input. I then feed the input to the native app via JNI. All this works well.. Now, the problem is that I need to know the dimensions of the soft keyboard or any other Input Method windows that are displayed so that I can pan, scroll the native application correctly.
View 4 Replies View RelatedI was wondering if anyone could help. Here is my situation: I have a game with a portion that up to now we have been using the G1's hardware keyboard to implement. With the advent of 1.5 and because of the desire for more device compatibility, we've shifted requirements to implementing using a soft keyboard. I've been researching google groups and the android SoftKeyboard sample for a while, and what I've found can only get me part of the way. I have made a very simple custom soft keyboard (only capital letters and a backspace key / no candidate view) and it seems to function properly, but I had to activate it in the "Locale & Text" section of the settings, and long press an EditText box to force the selection of my custom keyboard. Is there a way to force the use of the soft keyboard I built in my application (they are in the same AndroidManifest.xml) without having the user "activate" the keyboard in "Locale & Text"? Alternatively, I want to use the default Android keyboard to do input, but I want to deactivate the candidate view and capture KeyEvents directly from it instead of using an EditText. Basically, is there a way to get the same exact functionality as the hardware keyboard on the G1 from this IME stuff?
View 3 Replies View RelatedBut windows phone keyboard has this great feature, after writing your text or message. You can then go back through the whole message just tapping on misspelt words once and it will highlight the whole word and give you suggestions that you can pick from.
View 3 Replies View Related