Questions tagged [android-softkeyboard]

The default onscreen input method provided by Android OS.

Android Soft Keyboard is the onscreen keyboard provided by Android OS.

Key Events of Android soft keyboard

On-screen Input Methods in Android Developers blog

2751 questions
1
vote
1 answer

Anchor a view to top of the screen when softkeyboard appears

Looks like a simple problem, but I cannot find any solution. My layout hierarchy is also simple: /> …
kristyna
  • 1,360
  • 2
  • 24
  • 41
1
vote
2 answers

How to test if the predictions keyboard is disabled on Android?

I'm writing a test to detect if the predictions portion of the android keyboard is disabled or not. Usually to detect these sorts of things, I would take an XML screenshot in UI Automator and then use the resource ID to detect it, but since the…
1
vote
0 answers

Custom Keyboard in Android

I want to develop a Keyboard in Android. How Should I proceed? Also I wanted to know whether all the popular keyboards used today in Android implement Machine Learning or Natural Language Processing.
1
vote
1 answer

Android- Change The height of EditText when softkeyboard is on

I am having an activity in fragment where there is an editbox and 3 buttons below the editbox. Please see attachment. When this activity is launched, the default state is STATE1.(Please see image). Now when the user types on the editText and when…
Jai
  • 3,211
  • 2
  • 17
  • 26
1
vote
0 answers

Replace the default virtual keyboard by a custom keyboard in android's webview

I want to write an Android application using WebView to display a web page. This web page has already a keyboard for edit text fields (i.e., search box). How can I replace this default keyboard by my own one? Fox example, how can I edit text in the…
1
vote
0 answers

While building an android Softkeyboard, detect change in cursor position when it is manually done by clicking on edittext

I trying to build a Softkeyboard for android and I want to detect changes in cursor position whenever it is manually done by clicking on the textfield. Can you suggest how to go about it. My class extends InputMethodService and implements…
Sanju
  • 115
  • 1
  • 13
1
vote
2 answers

How can I attach key event from Android soft keyboard without EditText?

I want to attach key event from soft keyboard without EditText. I already override some method. But not work. Here is my code that open soft keyboard. public class MyActivity extends Activity { public void OpenKeyboard() { InputMethodManager…
SaeHyun Kim
  • 475
  • 2
  • 8
  • 26
1
vote
1 answer

Android: Keyboard dismissal results in scrolling to the bottom

I'm using ViewPager to display two fragments as pages in my application. In page 1, there are EditText fields. I want to programmatically dismiss the keyboard associated with any of those textfields (in Page 1), when I scroll to Page2 (or select…
1
vote
1 answer

Close android keyboard when all the fields were entered using keyboard next button?

I have 5 edit text fields in my form, I can able to switch to next field using keyboard next button. once I visit the last field in the form, when user clicks next it is again going to the top filed, here I want to dismiss the keyboard. can any one…
Praneeth
  • 1,260
  • 18
  • 37
1
vote
0 answers

EditText restricting Copy/Paste when view is being added to WindowManager

I am adding a textview to Window using the following code public static void addViewToWindow(Activity activity, View view, WindowManager.LayoutParams params) { WindowManager windowManager =…
1
vote
0 answers

Android : How to determine if soft keyboard type was changed by user while typing

I want to get keyevent for change keyboard type by user. Requirement is such that I want to adapt text change listener as per keyboard type.
1
vote
0 answers

Android: Preserving the selected language on the soft keyboard

My application is a kind of quiz: the user should type the words into a text field (EditText) correctly, user can type it in either language, depending on what the language he has selected (using the "spacebar swipe") on the soft keyboard. The soft…
AterLux
  • 4,566
  • 2
  • 10
  • 13
1
vote
1 answer

Android custom keyboard - How to detect requested keyboard type

Following this tutorial I have created a fully working Android OS keyboard. it is a standard qwerty alpha/numeric. I have a second keyboard mark-up for numeric keyboard. What I can't seem to detect is what type of keyboard is being specified by the…
Clint StLaurent
  • 1,238
  • 12
  • 11
1
vote
1 answer

Xamarin Android - custom KeyEvent

I created a custom Android keyboard with keys for hexadecimal numbers (0..9, A..F). It does not have a Shift/CapsLock key. The custom keyboard's layout is defined in an .xml file like this:
1
vote
1 answer

Custom Android keyboard without KeyboardView

I have seen lots of answers on SO and tutorials on internet on custom keyboard development. However, all of them use KeyboardView for displaying keyboard. It is difficult to manage KeyboardView and KeyboardView does not show custom layouts. Is there…
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103