Questions tagged [android-keypad]

Android supports a variety of keyboard devices including special function keypads (volume and power controls), compact embedded QWERTY keyboards, and fully featured PC-style external keyboards.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Error toast being shown in samsung devices stating screen touches might be delayed

I am getting the following error on Samsung S22 (Android OS 12) when the keypad is opened in my app. Please let me know how to resolve this if anyone has been able to figure it out. I tried with other ...
  • 1,978
1 vote
0 answers
19 views

Android keypad hides Bottom sheet dialog fragment views

I am having a bottomsheet dialog fragment in my activity. I want my whole layout to be top of the keyboard when it keyboard is opened. I tried various solutions. Now my layout goes up, but keyboard ...
  • 43
0 votes
1 answer
23 views

In Android, Is there any way to listen Network Changes in the InputMethodService class?

I'm creating a custom keyboard in Android, whenever the keyboard popups, I want to show the popup when the network connection is interrupted, I have tried this in Activity-based classes but this is a ...
  • 2,278
0 votes
1 answer
95 views

Jetpack Compose - how to check if keyboard is open or closed

I'm using Jetpack Compose and trying to find a way to detect if the keyboard is open. I've tried to use the below code, but I get an error stating Unresolved reference: ime. When I click on the ...
  • 159
1 vote
0 answers
25 views

EditText input element hide in the android alert dialog when soft key pad visible

In my new app I want to give a pop to add password to login. It's having a EditText Input,Title and Message. Edit text gave as, final EditText input = new EditText(view.getContext()); Issue is when ...
0 votes
1 answer
52 views

Using onKeyListener with device volume buttons to call and dismiss an AlertDialog

I would like for the VOLUME_UP and VOLUME_DOWN buttons to open and close an AlertDialog window. Below is what I have so far, private void paused() { View v = this.getLayoutInflater().inflate(R....
  • 1,936
0 votes
0 answers
65 views

Enable Cursor and long tap copy/paste feature in EditText view for custom Keyboard

I developed my own keyboard for typing Urdu text, but there is an issue when I disable the default soft keyboard then. Cursor on EditText will disappear. Unable to Tab on EditText and remove the word ...
  • 3,808
1 vote
2 answers
55 views

How to retrigger focusRequester.requestFocus() when coming back to a composable?

I have a MyBasicTextField in a composable to request user input: @Composable fun MyBasicTextField() { val keyboardController = LocalSoftwareKeyboardController.current val focusRequester = ...
0 votes
1 answer
46 views

Why keybaord does not show after tapping back on Android 10?

I have an Android Jetpack Compose project where I show a screen with a InputField: When coming to that screen, the keyboard opens automatically, ready to read the users entered characters. The screen ...
1 vote
0 answers
23 views

Can I disable/enable the OK button in numeric keyboard?

To enter a 6 digit pin I display the numric keyboard with OK/Enter button. I would like to disable the OK button on the keyboard 5 or less digits were entered, so that OK is not tapable. Only after ...
  • 2,546
1 vote
0 answers
253 views

Compose text field crashing when trying to input accents via physical keyboard

I noticed my Compose app crashing when an accent input ( ´ ` ) is made via a physical keyboard to a TextField. As soon as the button is pressed the app crashes with a java.lang....
0 votes
1 answer
73 views

Android Keyboard hides TextView Element NativeScript

When I try to write something in an TextView-Element which is at the bottom of the screen, the Android keyboard hides the element. How can I resolve this issue? I already tried adding 'adjustPan' and ...
0 votes
0 answers
22 views

How to detect down arrow on keypad [duplicate]

how can I detect the down arrow on the keypad. I have an edit text, when it is clicked i open a number keypad, I want to detect when the keyboard is closed by clicking on the down arrow as shown in ...
  • 3,698
0 votes
1 answer
178 views

I am making a keyboard for android to send stickers from whatsapp but instead of stickers images are being sent. I used InputConnectionCompat.commit

I used InputConnectionCompat.commitContent to send the content but instead of sending sticker, WhatsApp is sending images. The same code works in the telegram. Telegram sends the same image as ...
1 vote
0 answers
1k views

Keyboard Aware Scrollview's extraScroll reduces when key is pressed in Android

When textInput is clicked, the keyboardAwareScrollView works fine and scrolls up with the extra scroll height provided. But scrolls down just below the textInput when a key is pressed in Android. ...
  • 141
0 votes
0 answers
71 views

Keyboard popup moves cursor automatically in ExpandableListView Item - Android

I have ExpandableListView like shown below: I have already used ExpandableList multiple times in my app and everything works fine. But in this case problem is that when i click input field to enter ...
  • 8,180
1 vote
1 answer
305 views

How to hide element when device keyboard active using hooks?

I wanted to convert a hide element when keyboard active HOC I found to the newer react-native version using hooks (useEffect), the original solution using the older react lifecycle hooks looks like ...
  • 5,939
2 votes
1 answer
40 views

Android - Passing keys down to launched parent activity

I have an activity A, where I launch another activity through intent. But my objective is to pass the keys down to activity1, instead of handling at activity2. Returning false from onkeydown or ...
0 votes
1 answer
667 views

How can enable only english keyboard in my android application?

In my application I need only english keyboard. If user changes the language(hindi) in settings page(input & language)keyboard inside my application also changes to hindi language. How to restrict ...
0 votes
0 answers
89 views

Keypad mobile text want to add through buttons in edittext in android

I am working on an application in which had design one keypad mobile in which added one text and 12 buttons 1,2,3..so on. want to add text like on pressing 2 getting 2, A, B, C so should enter like a ...
1 vote
1 answer
96 views

Using numeric keyboard on EditText in android studio

I'm using an EditText in my android app, and I want a numeric keyboard to show when I tap and try to edit it.
10 votes
1 answer
295 views

windowSoftInputMode: adjustResize doesn't work properly for numeric keyboard, when keyboard suggests text

When text is copied to clipboard and suggestion is shown, top of keyboard hides the small part of view behind, I think it's a problem of "Gboard", because if EditText inputType is "text&...
0 votes
1 answer
175 views

Can I get access to EditText setText method while using custom keyboard?

I am using a custom keyboard. My requirement is when user type some shortcut (like gm) then automatically (good morning) should be there. I don't know how to do it with custom keyboard, because, in ...
0 votes
2 answers
636 views

Is there any way to put custom toolbar on the keypad?

I want to put a custom toolbar on the keypad like the image above. Is it possible in flutter? or should I write code on the iOS or Android side?
0 votes
0 answers
111 views

How to set gravity of row in KeyBoardView in android?

I am working to make a custom keyboard with android KeyboardView [android.inputmethodservice.KeyboardView]. Everything works fine except when I am trying to reduce the width of the key. The Problem is:...
0 votes
1 answer
1k views

Android: How to prevent the keyboard from pushing a certain view up in my layout? [duplicate]

In my layout I have an edit text and an image view. The image view height is set to match parent layout. What I want to happen is, when the user selects the edit text and the keyboard appears, the ...
0 votes
0 answers
28 views

How to show custom views like imageview or gif view in key board view

in my keyboard view i need to show stickers and gif when click thos buttons in below image
0 votes
2 answers
39 views

"Go" text with actionGO is still "GO" even Keyboard is arabic

EditText with actionGO and "GO" text is displayed even Keyboard is arabic is this normal behavior? Can be changed to adapt the Keyboard language?
8 votes
1 answer
122 views

is there a way to detect German Umlauts in Android

I am trying to detect german umlauts with a soft keyboard. To recognize the entered characters I use the method onKeyUp(). But this method is not executed for German umlauts. Is there a way for me ...
  • 81
1 vote
1 answer
642 views

Can I delete dot(.) in the soft keyboard?

there is editText field in my app, and get 8 digit Numbers for get birthDay. So now it work. but there is .- button in app. <com.rengwuxian.materialedittext.MaterialEditText android:id="@...
  • 998
0 votes
1 answer
423 views

Android Emulator not showing keys on keyboard

Android Studio Emulator is showing black spots instead of keys on keyboard. Anyone knows whats the reason behind this?
0 votes
1 answer
1k views

How to set PopupWindow at bottom of root layout like soft keyboard?

whenever focus is available on edittext. Keyboard is open and all views are adjust and go upward like below sample image. Button.setOnClickListener(new View.OnClickListener() { @Override ...
  • 353
1 vote
1 answer
45 views

How to detect sapce key in Android device virtual Keypad through Web App (ReactJS)

I am building a web app in ReactJS, where i want to call an API just after user hit space bar. i have tried several Events like (onKeyPress, onKeyUp, onKeyDown) but got same keycode for every key ...
  • 1,695
1 vote
1 answer
268 views

AnySoftKeyboard: Integrate language pack into apk without having to use addon

I want to fork the AnySoft keyboard and add a language pack to it for deployment as a standalone apk. It has a way of adding language as a language pack that has to be installed separately by the user....
0 votes
1 answer
327 views

The phone's keyboard is hiding my Bottom Sheet Dialog Fragment. How can i solve this issue?

I'm making a small tasker for android with kotlin. To create a task i added a fragment called CreateTaskFragment which extends BottomSheetDialogFragment(). When the fragment pops up i need the ...
-1 votes
1 answer
95 views

Arduino stops working after being just minutes in use

When I run this code on my arduino nano for some reason after a while it seems to halt. I've tried booting it and waiting 5 minutes but that doesn't seem to freeze it yet. Does anyone know if perhaps ...
0 votes
2 answers
569 views

Android: How to remove customize keyboard button from keyboard?

Please find below the screenshot wherein the circular box shows the customize button option. XMl Code: <EditText android:id="@+id/et_cost_per_mile" android:layout_width="...
1 vote
1 answer
578 views

How to show the line break button in Android keypad?

I am building a text area in my APP using a TextInputLayout and its multiline property to let the users write more than 1 line, I am building it programatically (no xml) TextInputLayout ...
  • 2,072
0 votes
2 answers
2k views

Input a number with Keypad and storing a number to EEPROM

Hi there I don't have very much experience in coding just a basic staff so I need help but I need modification like: First when user press "#" key he has to write the number which will be like a ...
0 votes
0 answers
88 views

How to highlight textinputlayout on focus without bringing the keypad up

I am trying to design a control of TextInputLayout, on click of which a pop up will appear to select item. I want to highlight this TextInputLayout when clicked that means showing floating label but ...
  • 3
0 votes
1 answer
19 views

No components being touched when keyboard is opened

I have ImageButton and an EditText, when the keyboard is opened that is the edit text is focused the imagebutton on click listener does not work I already tried removing the requestfocus in oncreate ...
0 votes
2 answers
317 views

Form fields not moving up when focus on text feild in NativeScript+Angular application

I working on Nativescript+Angular application and I am using RadDataForm but when I am focusing on text field, text fields are not moving up. I am not sure how we can handle this. If any one knows ...
0 votes
1 answer
281 views

CSS fixed position causes soft keypad appearing over the textbox in android

I have a chatbot window and have to position that on fixed right-bottom. I have put CSS settings below for fixed positioning as well as viewport settings. The chat windows in CSS fixed bottom right ...
  • 71
1 vote
0 answers
47 views

Soft Keyboard is hiding edit text behind it

I have set activity with SOFT_INPUT_ADJUST_PAN in onCreate() method as below getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE | WindowManager.LayoutParams....
1 vote
0 answers
171 views

Chrome O.S. : In tablet mode, switching from floating keyboard to normal keyboard is not working as expected

Problem - In tablet mode of Chromebook, in an android app, if we switch from floating keyboard to normal on-screen keyboard in, the screen does not adjust and block the UI. Steps to reproduce the ...
0 votes
1 answer
58 views

Softkeypad pushing the footer view

I tried everyhing in this Android: How do I prevent the soft keyboard from pushing my view up? But none of them not worked for me Here is my xml <RelativeLayout android:layout_width="...
  • 2,071
1 vote
0 answers
297 views

Edit text is not editable in Android Pie 9.0

Hello Everyone, I m having an issue with the AppCompatEditText. I have override an AppCompatEditText and add Enter button in keyboard (setImeOptions(EditorInfo.IME_ACTION_GO)). This is ...
3 votes
2 answers
6k views

showSoftInputFromInputMethod is deprecated Android P API 28

The showSoftInputFromInputMethod method from the InputMethodManager class is deprecated in Android P. As per the documentation, we should be using the InputMethodService.requestShowSelf(int) method ...
  • 2,635
1 vote
1 answer
273 views

Keyboard - detect all languages, change language, install language

I'm looking for a solution to these problems: 1) How to change Android Keyboard language? 2) How to detect all installed keyboard languages? 3) How to install some keyboard language? Are these ...
2 votes
5 answers
3k views

How can i hide/disable done button on soft keyboard android?

I am working with Amazon S3 api. Problem: Working with TextWatcher. As soon as user enters more than 3 characters in the edittext, api is called and it shows matched results. The problem starts as ...

1
2 3 4 5
9