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, alert.show() works fin ...
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, alert.show() works fin ...
I am currently creating a key listener that runs code when the enter key is pressed. It works on my actual pc keyboard when I run the enter key. The c ...
I have a KeyListener on an editText like so: But no softkeyboard-stroke is recognised.? Only when I left the Activity with the BACK-Button (Hardwar ...
I create a restriction on entering text in the EditText field via OnKeyListener. This code works on all other devices except Samsung. For some reason ...
I am using an Android device with physical hardware keyboard. I have two EditTexts (Part No and Qty) and Two Buttons (Reset and Save) on screen. After ...
Well, I got an EditText on my adapter that I want to clear his focus when I press button back of the soft-key bar. But the problem is: it just works i ...
My Use case is to restrict user after he has entered 4 lines in text box. Setting maxLines will not work to stop user. I am surprise that Android is ...
In the OnCreate fragment method, I get my EditText from the layout and call SetOnKeyListener: Layout declaration: EditText styles: LocationKe ...
I want to apply few number validation after entering text into edit-text.I tried to do it using TextWatcher, but it works properly on high versions on ...
I am trying to implement some button events without any reference to the XML-File and with databinding instead of FindByID. Is this possible? I am hav ...
Really not sure if I understand this or maybe going about it wrong. I have a gridlayout (cells are textview) wrapped inside a horizontal scroll which ...
I was trying to detect which key was pressed, so far I was able to detect SHIFT,BACKSPACE and ENTER with dispatchKeyEvent() method but it seems that i ...
I am trying to get Enter key whenever user pressed. I tried many codes but neither in emulator nor in device I could get the Enter keypress. Here is ...
I am created an app which toast some text when user click on android keyboard's ENTER key but its working on my desktop keyboard means when i click on ...
I want to add a functionality on click of "enter" key of Google's keyboard without vanquishing the default newline characteristic. I have used OnKeyLi ...
I'm trying to create a custom ime for the Android TV similar to the "Leanback Keyboard" app. The issue I have right now is that I need to process KeyE ...
I have an AutoCompleteTextView in a Fragment (android.support.v4.app). After the user selects an item in the dropdown, I want to retain the text they ...
I have tried a lot but could not get this thing working. I have some pictures in grid and I want to navigate it using a d-pad. For this purpose I'm im ...
I'm trying to set the focus on an EditText (inputOne) but my code is showing odd behaviour. When I press the button, inputOne gets focus and everythin ...
This is my custom-dialog layout. I want to move the selector of days and load respective items in the grid below it. I could perform it via filter ...