I have an app that uses LOW_PROFILE_MODE to hide soft buttons.
It works quite ok, but when I select a TextView and the software keyboard appears on the screen, the LOW_PROFILE_MODE is gone.
Is there a way to use android soft keyboard and stay in LOW_PROFILE_MODE on Android 5+?
Related
I am developing a single-use device with Android. HW has a full keyboard but no main keys (Back, Home, Overview).
Some of the app should be working in immersive mode and they contain EditText fields.
When the app is in immersive mode (I used Lock Task Mode), if I select EditText field, a black bar with the same size of the navigation bar, pops up from the bottom.
I cannot set qemu.hw.mainkeys=1 because it removes nav bar completely but I need it for some other apps.
Is there any way I can hide it for EditText in just some cases?
I have access to a full AOSP source.
You can't, Android does not allow you to focus an EditText without showing the Navigation Bar. (except if you are using an external keyboard)
Probably because some people don't know how to unfocus it and need to press the back button.
i have a design that have a few buttons. it only appears when keypad is visible. it just come above keyboard like facebook app
I have an Android app where layout elements size and margins are defined in dimens files (e.g, values-hdpi/dimens.xml, value-xhdpi/dimens.xml, etc.). That worked fine on a few devices, however on the first device with soft keyboard (htc), my elements are not aligned as it should be (keyboard is moved up and overlap some elements). I should note that I'm using my custom keyboard. How can I overcome this ?
There is no automated way to adjust for the soft keyboard. In fact there is no automated way to even know that the keyboard is up or not. The only response you have to it is the soft input mode, which can either resize your app above the keyboard or pan your app to be above your keyboard.
I'm trying to make my android app backwards compatible, from targetSDK=21 to minSDK=19. My app has webviews. When an input field in the webview is focused, the keyboard comes up, but nothing is displayed but the background color in place of the keyboard. But something is definitely there; when I press the space where the keyboard should be, keys are being pressed (ie. letters get entered into the input field), but I just can't see them. Also, the keyboard space covers up the webview so I know that something is there. Any ideas on what's going on?
EDIT: Here's a link to a screenshot. The bottom grayish area is where the invisible keyboard is. If I press on this area, keys do get pressed but the actual keyboard is not visible.
https://www.dropbox.com/s/4pbfj6gey2h6dyc/Screenshot_2015-09-17-12-50-22.png?dl=0
I have a problem in my android air project. I have a text box when i click on it the default keyboard of device will pop up from the bottom of the screen. But the text box which i clicked also will be on the bottom, hence when the keyboard pops up the text box is under the keyboard so my entered text will not be seen and also i don't want to shift the text box to the top of the screen. Please suggest any code for disabling the default keyboard so that i can use my own one where ever i want on the screen.
Thanks.
To stop a text input from requesting the Software Keyboard you should set your textinput.needsSoftKeyboard to false
See: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.html#needsSoftKeyboard