Questions tagged [android-input-method]

The InputMethod interface represents an input method which can generate key events and text, such as email addresses, other language characters, etc., while handling various input events, and send the text back to the application that requests text input

427 questions
0
votes
1 answer

requestFocus() method not working for edittext

I have an 2 edit texts, one of them is visible and other is not. I have set visibility "gone" for the invisible one. Now when I click input method next from edittext one, I make edittext two visible and request focus there, it gets visible but focus…
Aalap Patel
  • 2,058
  • 2
  • 17
  • 31
0
votes
1 answer

input method next not focusing on an edit text

I have 5 edit texts where user enters his options, I keep first two visible and other 3 visibility gone. If user wants to enter option 3 I make it visible by pressing action next key on keyboard while user finishes typing on option 2. But the…
Aalap Patel
  • 2,058
  • 2
  • 17
  • 31
0
votes
1 answer

Xamarin Forms custom Entry renderer that hides soft keyboard

In a Xamarin Forms app, I am trying to create a custom Entry implementation that does not automatically display the soft keyboard when it is focused. The goal is to use one instance of this entry alongside other conventional entries on a page. I am…
0
votes
1 answer

Custom keyboard for Android app

I'd like to create custom keyboard in my app. I've found that I should create new Input Method. But I don't know how to set this Method to my EditText and disable standard keyboard. I do not want user to have a possibility to change this keyboard.…
0
votes
1 answer

How to know if an `InputMethod` is enabled?

I am writing a custom InputMethod from scratch and would like to show the user a button in my Activity to enable my InputMethod in case it is disabled... I would need to find out programmatically if my InputMethod is enabled in the device or…
Kamran Ahmed
  • 7,661
  • 4
  • 30
  • 55
0
votes
2 answers

Display smiley button at right bottom on Android keyboard

I need to show smileys button by default when user input in my EditText. Now keyboard for my EditText looks like: Look at the right bottom, you will see done button. In same time in sms app keyboard looks like: [ At the right bottom displays smiles…
Nik
  • 7,114
  • 8
  • 51
  • 75
0
votes
0 answers

Change Keyboard suggestions? Possible to use reflection if not accessible?

I am trying to change the suggestions that occur on top of the keyboard in Android. Is it possible to use a ClassLoader to instantiate an object from the package com.android.inputmethod.latin to adjust the suggestions above the keyboard?
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
0
votes
1 answer

Android - how to remove the "input method" popup?

I have an application with a WebView. The WebView opens a page and there is a input field on the page. If the users clicks on the input field and presses for long some of the submission buttons, a "input method" popup appears (from Android). How can…
George
  • 3,727
  • 9
  • 31
  • 47
0
votes
2 answers

How to avoid keyboard from moving my layout

Every time I get in the Activity, the keyboard layout moves. I want the fields to remain below the keyboard, and you use the scroll. I think that may be something with the actionbar. See hera a print screen I used…
0
votes
3 answers

Android: How can I ensure that a button is also visible when the soft keyboard is open?

The OS can automatically ensure that the focused EditText is visible when the soft keyboard is open. My layout looks something like this:
0
votes
0 answers

Focus on an element with a number input type displays a qwerty keyboard rather than a numeric keyboard

Previously I had a problem to do with soft keyboard backspace on Android 4.4.3 and this only occurs on the device that uses the Android Keyboard (AOSP). Backspace seems to not work when the view is currently in focus on a text box and when I tap on…
0
votes
1 answer

Softkeyboard hide call not working as expected in view.post(), but works fine inside runOnUIThread()

When I make a call(from inside of a fragment) to hide the keyboard inside runOnUiThread() , the keyboard hides, but when I do the same from inside of activity.getCurrentFocus().post(), the keyboard does not hide. 1) Below code…
0
votes
1 answer

How to get current activity from IME service in android

I am developing an android soft keyboard. I need to get the root view and textedit of currently active foreground activity from the IME service. How do I achieve this?
jeff
  • 684
  • 1
  • 11
  • 30
0
votes
1 answer

Android: button in IME's suggestion bar not clickable

I'm subclassing InputMethodService to create my own personal keyboard. A lot of stuff already works quite nice. But now I'm playing around with the suggestion bar (also called "candiate view"). For now I'm just trying to load a static layout with…
znq
  • 44,613
  • 41
  • 116
  • 144
0
votes
0 answers

When creating android keyboard by supplying charsequence, the max col is disregarded and all keys are added on one row

I am trying to create another input method editor. I create and add the keyboard with the following code. keyboardView = (KeyboardView)findViewById(R.id.myKeboardView); Keyboard keyboard = new Keyboard(this, R.xml.key_layout,…
yohannist
  • 4,166
  • 3
  • 35
  • 58