Android :: Window Soft Input Mode Not Working Properly With ListView
Nov 9, 2010
I have a layout with a ListView that contains EditText objects that can requestFocus() when the user chooses to edit the list item. I make sure to call setSelection() on the ListView when this happens, and then have the EditText request focus and then use InputMethodManager.showSoftInput to show the soft keyboard. However, when this happens, the list view is being resized correctly, but the selected list item remains below the fold and the user has to scroll up. This is working properly on 2.2, but is failing on 2.1. Any ideas for making sure the list selection remains visible?
View 2 Replies
May 9, 2009
I got confused about whether the default value for android:windowSoftInputMode[1] was adjustResize or adjustPan and thought I might be able to help someone avoid similar confusion. The "Updating Applications for On-screen Input Methods" blog post[2] states that pan and scan is the default mode because it is the safest for existing applications and resize is often the preferred screen layout. But I believe it's a little more complicated than that.
If the outermost View in a layout is a ScrollView then it appears that the default is actually adjustResize. And this makes sense: if the View lives inside a ScrollView then it probably knows how to resize itself. I'm mostly basing this statement on trial and error, so it would be great if someone could confirm or correct me. Maybe this should be mentioned in the documentation at [1]? Or state that it is recommended that applications specify one or the other, rather than depending on the default?
View 2 Replies
View Related
Oct 20, 2009
When I press back button, soft input keyboard is gone. How can I detect this event in my activity?
View 2 Replies
View Related
May 10, 2009
I have a class that extends ImageView, which also handles keyboard input, currently via OnKeyListener, which works great with the 1.1 sdk, but how do I port this to the 1.5 sdk? How do I get the soft keyboard to load for this View? I haven't found a ton of documentation regarding the new input framework.
View 2 Replies
View Related
Oct 21, 2009
Does anyone know how to enable the emote button in soft keyboard input?
View 2 Replies
View Related
Jul 11, 2009
In my app I have AutoCompleteTextView and "search" button. When user clicks "enter" or "search" an Intent is fired and new Activity is started. But in that "new" Activity SoftInput should be invisible, so I make ((InputMethodManager)getSystemService (INPUT_METHOD_SERVICE)).hideSoftInputFromWindow(this.getCurrentFocus ().getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); But when user clicks BACK and returns to activity with form he is unable to show soft input back by touching AutoCompleteTextView. He mus use trackball to select "search" button and than touch ACTextView. Bud when he is in "form" activity first time, shows soft input by touching AutoCompleteTextView and presses BACK button he is able to show soft Input by touching field. How can I hide soft input "correctly" (so it can be shwed back in intuitive way?) or hide it like BACK button does?
View 4 Replies
View Related
Apr 21, 2010
I am trying to do something that I thought would be simple, yet I still haven't found the right approach. I have a Edit Text field that should only accept unsigned decimal entries. Using android:input Type="number Decimal" in my layout xml file achieves this, however the soft keyboard that is raised with this input Type is the standard keyboard but just uses the alternate view with the number row on top. This is far from ideal for a field that only allows numbers. A much better soft keyboard for numeric entry is the "phone" one. It has all of the numbers and a decimal. Perfect!! Well, except that for the life of me I cannot figure out how to use both the phone keyboard AND allow only numeric entry. I've tried everything I can think of but if I use the phone soft keyboard then the input field also allows things like "(" and any of the other symbols available on that keyboard. Is there any way to get the nice big numeric buttons of the phone keyboard along with only allowing decimal entry? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
View 3 Replies
View Related
Oct 8, 2009
Inside TextView.java, I have the following code.
InputMethodManager imm = (InputMethodManager)getContext ().getSystemService(Context.INPUT_METHOD_SERVICE); Log.d("tag", " fullscreenmode test: " + imm.isFullscreenMode());
and also, InputMethodManager imm = InputMethodManager.peekInstance(); Log.d("tag", imm.isFullscreenMode());
My phone is in landscape mode. My application has an EditText. My keyboard(virtual/soft) is not visible. I expect the above codes (written inside TextView.java) to print false. But it prints true. How is that possible?
View 2 Replies
View Related
Apr 27, 2009
I wonder it is possible to know whether SIP is showing to user or not. A user application(Activity) can show or hide the Soft Input through the Input Method Manager. There is some APIs to handle the SIP. But I can't find API to know status of SIP(it is on showing or hiding).
When SIP is showing to user. It disturbs the UI of the Activity. So Activity should know about the information related with upper case. How can I know that?
View 3 Replies
View Related
May 18, 2009
I have a custom dialog displayed to input user info (ID). This appears on top of an activity with an 'Done' button, however when the edittext is selected and the soft keyboard appears, the keyboard obscures the Done button at the bottom of the dialog. The documentation / blog posts are a little dry on info specifically for dialogs, what do I need to include to get the dialog to pan up or otherwise?
View 5 Replies
View Related
Aug 28, 2010
When I try to enter something into the url/search bar on either the stock browser or dolphin hd (which is what I normally use) one of two things happens. Either the input box simply closes after a few keystrokes and I have to start from scratch, or the input on my screen doesnt match up with what is actually sent. Generally, the autocorrect will not be updating properly, and will refuse to even give me the option to send what I've written and will insist I go to a previous page, even If I just want to do a Google search from the bar.
Other times, it will start to accept input into the suggestion window but stop after a few letters, and when I hit return to go, it will only take those few letters it has acknowledged, rather than what is actually in the Input window. The only work around I've found Is that if I just close the keyboard and click the box again, the correction window will be gone and it will use the text I'd entered. This is only if I am in the version of they keyboard with the .com shortcut, e.g. URL entry. The fact that it happens in multiple browsers make me feel like it's a problem with how the sense keyboard is handling URL input.
View 5 Replies
View Related
Sep 5, 2013
I've tried Unified Remote and WinApp off the market, both highly rated, both practically useless for me, if for example you run a setup program the input just stops working so you have to plug a mouse in to complete which completely renders the app pointless to me. That was just an example, all of the ones I've tried have been so flakey as to be frustrating.
Are there any apps that can act as keyboard and mouse for a remote windows system that actually work 100% of the time?
View 1 Replies
View Related
May 13, 2009
how can I use the new soft keyboard to filter a ListView?
View 5 Replies
View Related
Oct 5, 2010
I have a ListView that get data properly and they are added to my own ListView using a ArrayAdapter class and my own ArrayList class. When I for example, typing in "table" I want it to sort from the loaded titles in my ListView and than it should show me the items that are left and matching table.
View 1 Replies
View Related
May 31, 2010
Using standard Google navi software, incoming and outgoing calls are vertical when the should orientated horizontally like the rest of the phone in the horizontal dock/mount. Its a new Moto Droid with 2.1 I believe.
View 1 Replies
View Related
Apr 22, 2010
I am trying to laod the listview dynamically. There are three textviews inside a listview. The text to be set in the textview is fetched from the server. All this is working fine. I am able to fetch the text and am able to display it inside the listview.
The only problem is the position of the textview. The xml layout file is as under:
CODE:.............
If I look at this xml layout in the eclipse layout tab then it is displayed properly. Problem occurs only when the text is fetched dynamically.
View 2 Replies
View Related
May 5, 2009
I tried a lot of ways with no luck.
View 2 Replies
View Related
Sep 11, 2009
When Android is in portrait mode and the soft keyboard IME is shown, my app is resized properly. When in landscape mode, the soft keyboard IME is always in fullscreen/extract mode, and even though I can see the top portion of my app, it doesn't resize my app. I couldn't find any way to make the IME not come up in fullscreen mode. So instead, I detect this condition, and manually resize my app. This works, but unfortunately, to make this work well, I need to know the height of the IME, or the portion of my app that remains visible. But it seems there is no way to get this information, and the soft keyboard IME's height varies on different devices. As a hack, I put in options for the user to be able to adjust these parameters, and set the defaults for the G1. I can live with this for now, but is there a more appropriate way to handle this?
In addition, even in portrait mode, if the status bar is hidden, the IME also does not resize my app. This clearly seems like a bug to me.
View 6 Replies
View Related
Nov 9, 2010
I have some EditViews in the rows of a ListView.This works just fine except when the soft keyboard raises and lowers.When I touch the EditView within the ListView with the soft keyboard down, focus jumps to the EditView, then the keyboard comes up, removes focus from the EditView and sets focus to the ListView, resulting in an odd user experience with the focus no-where visible.Touching the EditViews with the keyboard already showing works as you would expect.The problem seems to be with the soft keyboard lowering and raising and the ListView getting confused about where focus should be placed.
View 1 Replies
View Related
Nov 14, 2010
I need to filter List View as per the user's input in the Edit Text Field.If the user Enter the letter 'a' i need to show the list items starts with 'a'.Can anyone give some ideas to me to solve this ? Thanks in advance?
View 2 Replies
View Related
Oct 31, 2010
In messaging application screen i am trying to attach a audio , it pop up a dialog and, at the same time some incoming call came, after disconnecting the call the popup dialog displayed (half) not full dialog ( only header of dialog visible no buttons are visible to select or cancel),
It is not happening in the portrait mode,
how to solve it.
View 2 Replies
View Related
Dec 14, 2009
I've been experimenting with the IMM and it's mostly straightforward, but for some reason, my custom view that launches the soft keyboard works only in portrait mode. Launching it is easy enough:
InputMethodManager imm = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.toggleSoftInputFromWindow(getWindowToken(), InputMethodManager.SHOW_IMPLICIT, 0);
I've seen a couple notes about the soft keyboard only working in portrait but I assume this was a limitation in a previous version, since all the Android EditText views work fine in both portrait and landscape. Is there some additional piece of work needed to enable landscape?
View 2 Replies
View Related
Oct 28, 2009
If you enter recover mode on a HTC Magic, for example (holding down HOME+POWER buttons) you do not have access to the keyboard to continue. After the Recover Mode tirangle icon has appeared, press HOME+POWER again and that will bring up a menu for you to reboot the phone, update, or factory resets. use the trackball to select which option you want.
View 2 Replies
View Related
Oct 6, 2009
just got my Galaxy which came with firmware II4. I thought I may as well update to the latest (II5) before I started using it properly, which I've done, but it now seems to be missing the option to set the input to "12 key" mode. Is there some way to enable this, or is it possible to go back to II4?
View 5 Replies
View Related
Jun 24, 2010
I 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 Related
Aug 1, 2009
My little apps used to run fine in eclipse and on the android emulator.Then for some reason they stopped working. Now, no new apps or changes will appear on the phone.I have followed the instructions on the FAQ but it doesn't change. Now also if I want to change some code and then re-run it by pressing play, it says: emulator: ERROR: the user data image is used by another emulator.
View 2 Replies
View Related
May 8, 2010
Started on the missus iphone that it stopped sayiing 'Welcome to CoPilot' when you started the app (even though it is switched to on in the settings), also none of the directions are audible yet the button clicks are fine. Sent a support request to ALK a week ago... no reply. Today fired up CoPilot on my HTC Desire and exactly the same thing has happened throughly pissed off.?
View 2 Replies
View Related
Mar 8, 2010
I have worked on android 1.5 and 2.0.
Currently i am doing Migration of Applications available in 1.5 to android 2.0.
During the work time i have come up with one issue as follow:
The DateFormat of android is not returning the value in CAPITAL Letters for AM/PM in 2.0 where as in 1.5 it is doing absolutely fine.
Example :::
CODE:.................
View 2 Replies
View Related
Feb 18, 2010
I would've been happy as a passive forum user and keeping up with other's posts but my Hero has recently developed a problem, prompting me to sign up and get some advice from you guys who have more experience.
Basically in the last couple of days my soft keyboard has randomly decided to change how it displays and works! 3 main problems:
- sometimes soft keyboard does not go into landscape mode when phone is orientated (seen suggestions on here of calibrating keyboard and installing bubble and running the bubble clibration: tried both of these but has not solved problem).
- when phone does decide to let me in landscape mode no text is displayed as you type....only when you switch back to portrait do you see what you have typed
- when in text message mode the predictive text box has moved and is now being overlayed on the text message body, so basically i cannot see what i am typing! (the predictive text box used to be displayed above the text message body). This problem is the most annoying out of the two!
View 6 Replies
View Related
Dec 28, 2009
I am using onKeyListener to get the onKey events. It works fine with the normal keyboard. But it does not work with soft keyboard. I am only able to get onKey events for numerics and not alphabets. Is there any workaround to solve this?
View 2 Replies
View Related