Android :: EditText Hidden When Virtual Keyboard Shown And SurfaceView Involved
Jun 4, 2010
I have a simple user interface: an EditText should be located below a SurfaceView. I use a RelativeLayout to arrange these two views. Now, when I tap on the EditText to open the virtual keyboard the SurfaceView slides up but the EditText is hidden and does not show the typed string. To reproduce, use the following layout XML code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/RelativeLayout01"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<SurfaceView...............................
View 2 Replies
Jul 10, 2009
I have an application that renders content into a SurfaceView. When the longPress event is received the application requests that the soft keyboard be displayed so the user can interact with what is being displayed on the SurfaceView. The problem that I have is that the size of the SurfaceView is not changed when the soft keyboard is displayed. I have read the article titled: "Updating applications for on-screen input methods" and I've modified my application manifest so that the following is specified for the activity in question:
<activity android:name="AndroidSurfaceViewActivity" android:configChanges="orientation|keyboardHidden" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> </activity>
So you can see that I've specified the "android:windowSoftInputMode" tag to be resize........................
View 4 Replies
View Related
Sep 25, 2010
Is it possible to catch the event that Soft Keyboard was shown or hidden for EditText?
View 2 Replies
View Related
Jun 22, 2009
I was fillding with EditText and handling of events, and I was wondering on a strange thing:
If you press some of the keys (for example forward slash '/') on the emulated physical keyboard, the keyevents are called as usual (onKeydown, the KeyListeners etc). If I click on the corresponding virtual key on the onscreen virtual keyboard, all these callbacks do not get called at all! This is strange, given that If I press other keys like alhpanumerical, the events are called.
View 8 Replies
View Related
Aug 11, 2010
I'm creating a ListActivity. In each list item I have a View I've created which contains a RatingBar and an EditText. In the screenshot at the bottom, you can see the virtual keyboard contains a returnline key and no "Done" key. I would like to specify a different style of keyboard to use (and hopefully retain the spell checking bar). I would like my virtual keyboard to have a "Done" key instead of a return key. Can I set the style of virtual keyboard I'm wanting in the EditText's XML?
View 2 Replies
View Related
Jan 28, 2010
I want to display keyboard when my app gets started. I know we can get Virtual Keyboard when clicked on EditText field, but I want to show Virtual Keyboard without clicking on EditText.
View 3 Replies
View Related
Oct 8, 2010
I have edittext and a button below edittext. edittext has width as fill_parent and height as wrap_content.
My messages covers full screen, due to this my button is not visible it hides below virtual keyboard
View 3 Replies
View Related
Dec 4, 2009
How to block virtual keyboard while clicking on edittext in android?
View 1 Replies
View Related
Dec 23, 2009
I want that on each key press I require to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user presses Enter or Done key, Please Can I Find a Resolution for this.
View 1 Replies
View Related
Jul 10, 2010
I'm making a drawing app. In the centre of the screen, I want the app to contain the user's drawing. At the top of the screen I want buttons for different drawing tools. When a drawing tool is selected, I want buttons specific to that tool to appear at the bottom of the app (e.g. the brush tool might show a "increase brush size" button at the bottom of the screen), replacing what buttons might be there from before. What's a good way to do this?
At the moment, I'm using a relative layout for the whole GUI, then adding a separate linear layout for each tool panel at the bottom of the screen (i.e. the panels overlap when shown together). When a tool button is clicked, I hide all the settings panels except for the one related to the selected tool. This seems a bit messy but I'm not sure how else to do it. It would be nice if I could do it in a way that keeps the code modular for each tool.
View 1 Replies
View Related
Nov 9, 2008
I'm getting the G1 next weekend and am wondering how long until a virtual keyboard will be available. I really like the idea of having a full slide-out keyboard but I would also like a virtual one so if I'm not wanting to say much I can just use the virtual keyboard or if I'm in an area where it needs to be quiet I don't need to have the sound of the keyboard sliding open.
View 14 Replies
View Related
Jun 24, 2010
CODE:............
I have this at the top of my application. When the application starts, the EditText is orange highlighted and has a cursor in it; when the EditText is tapped, the soft keyboard pops up. The user uses it to type into the EditText.
However, when they click the Button, my onClick method fires and does everything it's supposed to, however the soft keyboard stays on screen and the EditText is still highlighted with its cursor.
I also have, at the top of the Button onclick: findViewById(R.id.name).clearFocus();
In spite of this, the EditText does not seem to clear its focus. How do I make the button actually act as if it is submitting the form?
Also, I do not transition to a different Activity on the click of the Button. I suppose that is the typical case, and probably the reason why they don't bother hiding the keyboard. However I want to keep the search box and button at the top of the screen, so I just dynamically fill and add views to the screen when the Button is pressed. How can I achieve my desired behavior?
View 1 Replies
View Related
Jan 27, 2010
I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
View 2 Replies
View Related
Nov 4, 2009
Basically I want to capture Alt-key combination to provide some customized alternative text input. For example Alt-f would put FOO into the text field. However there doesn't seem to be ALT key on the virtual keyboard in ether portrait or landscape. Is it possible to fake Alt key on the virtual keyboard somehow?
View 3 Replies
View Related
Aug 18, 2009
I have developed an app that uses setTextFilterEnabled(true). It works perfectly on my G1. My partner has a new MyTouch phone that does not have a real keyboard. He cannot use this functionality at all. He tried holding down the menu key(and so have I) but the keyboard does not appear. Without a keyboard, this app is dead on arrival.
I am trying the following code to no avail.
CODE:................
View 3 Replies
View Related
Dec 7, 2009
I just read this blog on androidandme.com about a new virtual keyboard, launching December 7, called Crocodile Keyboard. Crocodile Keyboard chomping its way onto Android - Android and Me
From the screenshots it seems like it'll do pretty well. Can't wait to find out.
View 14 Replies
View Related
Apr 28, 2010
I have an Android application that is a TabHost with a WebView. I use it to load a specific html file that has a text field in its bottom part. When I touch the html textfield, the soft keyboard pops up, and hides the textfield, so that I cannot see what I have typed.
Here is the layout:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >.......................
View 1 Replies
View Related
Feb 2, 2010
I'm looking for a way to move the virtual keyboard to the top of the screen, rather than the bottom. Is it possible?
View 4 Replies
View Related
Apr 7, 2010
Is there a way to configure the virtual keyboard to "hide" once the return key is pressed? I have numerous EditText fields in my application and I want the user to be able to enter a single line value, press return, and the keyboard goes away.Is there a way to override the virtual keyboard return key?
View 4 Replies
View Related
Mar 28, 2009
If I´m using the T-Mobile G1, then the QWERTZ- keyboard is very good. But if I only want to use one hand, then I have to use the keyboard. Is it possible to add a virtual keyboard to the T-Mobile G1? I've heard, the new HTC Magic (with Android) has got one!
View 4 Replies
View Related
Apr 28, 2009
Using the 1.5 SDK. I have an application with a TabActivity and when I change from one tab with edit fields to another that does not need any user input I would like the virtual keyboard to be hidden. I've tried setting android:windowSoftInputMode="stateAlwaysHidden" on the manifest for the activity that doesn't need user input but it didn't work (maybe because the activity is triggered by a TabActivity).
I've found the method hideSoftInputMethod(IBinder, int) in the InputMethodManager class but I don't know how to get the IBinder object that this method needs.
How do I get that IBinder object? Are there other ways to hide the soft keyboard?
It would be even better if I could make the soft keyboard automatically hide when an EditText loses focus.
View 18 Replies
View Related
Jun 3, 2010
I am currently working on sdk 1.5, in which i want capture the Click event of Enter key on Virtual Keypad. My requirement is, for my Username/Password Login screen. Click on Username field. Cursor is displayed in Text entry box. Click on Enter key on Virtual Keypad. Cursor should be displayed in Password field. Take the cursor in Password field. Click on Enter key on Virtual Keypad. Virtual Keypad should be closed. I am testing the app on HTC Magic.
View 6 Replies
View Related
Apr 9, 2010
I need to close the virtual keyboard when user enter the "Enter" button in virtual keyboard. How to close it.
View 2 Replies
View Related
Dec 15, 2009
Can we make an application use custom virtual keyboard exclusively? So that no one else can use this virtual keyboard, and our app is always using our keyboard... ?
View 3 Replies
View Related
Sep 27, 2010
How can I get an event when the user opens or closes the virtual keyboard..?
View 2 Replies
View Related
Aug 21, 2010
I have several pages which are implemented using the ViewGroup class. I display a particular page by calling:
CODE:.............
And also
CODE:............
View 3 Replies
View Related
Aug 14, 2009
I need help with showing the integrated virtual keyboard on-screen. I extended a View class and I implemented these two methods (most of it is just stub code; for now I only want to display the keyboard):
CODE:.............
Where editor is an instance of my View. I noticed in the debugger that my onCreateInputConnection() is executed but after that the keyboard is not displayed on the screen. Using the TextView widtget and it's subclasses is not an option.
View 5 Replies
View Related
Jan 3, 2010
I don't want to show the virtual keyboard. I tried the below method but it doesn't make any difference.
View 2 Replies
View Related
Dec 27, 2009
I have a few elements in a RelativeView with the align bottom attribute set, when the soft keyboard comes up the elements are hidden by the soft keyboard. I would like them to move up so that if there is enough screen space they are shown above the keyboard, or to make the section above the keyboard scrollable so the user can still see the elements.
View 1 Replies
View Related
Aug 5, 2009
I wanted to get a virtual keyboard on click of a button and when the button takes focus.the following code works only for on focus,but does not work for the onClickListner.
How do I get the virtual keyboard on click of a button?
CODE:.................
View 3 Replies
View Related