Okay so I have a simple ListPopupWindow assigned with String[] and in portrait works great.
If I open the List and then change the orinentation it messes everything up.
When I show the Popup for first time in portrait:
When I change orientation while the Popup is opened:
When I open it while in landscape mode:
I want while is opened and I change orientation to go to the button view, and when I open it in landscape mode to be wrapped because if I want to choose about or help and feedback I am not able because its not scrollable. How can I achieve that?
I have a Android Keyboard like a SoftKeyboard and I want to fix the screen in portrait orientation when the keyboard is activated, so, use the keyboard with the editTExt of the app just in portrait (I have just the keyboard, no the app).
Using the method shown in this thread - How to check visibility of software keyboard in Android?
I am able to detect keyboard hide when in portrait mode or in landscape mode where the keyboard is not in fullscreen. If keyboard in landscape mode is fullscreen then, the layout changes are not triggered and hence i cannot detect it in the OnGlobalLayoutListener !
Please help me with this? Is there no simple way to detect keyboard hide?
NOTE: I cannot afford to change anything in the manifest file. It should all be done through code dynamically!
Thanks!
I am enabling orientation change in focusChangeListener of an edittext in my app.
It is working fine, but the issue is if the user flips the keyboard to landscape mode keyboard disappears.
It will come up only if user tap on edittext again or change orientation to portrait mode.
I need to display keyboard in landscape mode without touching the edittext.
Please help me.
Generally, its a bad idea to mess with the default IME behavior because there are devices out there with hardware keyboards.
Now, that you have been warned, listen for the orientation change and if the keyboard was visible before the change and there is no hardware keyboard on the device, show the keyboard manually.
Try using android:configChanges="orientation" into your manifest class.
<activity
android:name=".classname"
android:configChanges="keyboardHidden|orientation"
>
if works then accept it.
I'm debugging an issue with the soft keyboard display not displaying when it should. However, I don't have a device handy for testing. The problem is that the emulator never shows the soft keyboard.
Some skins have a keyboard constantly displayed on the right, some don't, but none that I've tried so far has ever shown a keyboard on the device screen.
Is there some setting that I missed?
I found out how to do this on the Android emulator itself (Menu, "Settings" App - not the settings of the emulator outside). All you need to do is:
open settings app -> Language & Input -> Go to the "Keyboard & Input Methods -> click Default
This will bring up a Dialog in which case you can then disable the Hardware Keyboard by switching the hardware keyboard from on to off. This will disable the Hardware keyboard and enable the softkeyboard.
Here are the steps:
=> Settings
=> Language and Input
=> Default
=> Hardware Physical Keyboard
=> off to turn on the On Screen Keyboard
If you're using AVD manager add a hardware property Keyboard support and set it to false.
That should disable the shown keyboard, and show the virtual one.
Settings > Language & input > Current keyboard > Hardware Switch ON.
This option worked.
Settings > Language & input > Current keyboard > Hardware Switch ON.
It allows you to use your physical keyboard for input while at the same time showing the soft keyboard.
I just tested it on Android Lollipop and it works.
To be more precise, with Lollipop these are the steps I followed to show soft keyboard:
Settings > Language & Input;
under "Keyboard & input methods" label, select "Current Keyboard";
A Dialog named "Change Keyboard" appears, switch ON "Hardware", then select "Choose keyboards";
another Dialog appears, switch ON the "Sample Soft Keyboard". Here you get an alert about the possibility that keyboard will store everything you write, also passwords. Give OK;
Repeat above steps in order to show "Change Keyboard" Dialog again, here the new option "Sample Soft Keyboard" is available and you can select it.
NOTE: after that, you might experience problems in running you app (as I had). Simply restart the emulator.
Edit your virtual device using AVD.
Press the "show advance setting" button to show more option scroll
down to the bottom and check "Enable keyboard input" press "finish" button
at the bottom corner of your window
then start the emulator device that you just set up.
inside the emulator, go to the "Settings" -> "Language & Input"
and in the "Keyboard & Input Methods" -> "Default" then "choose
input method" is shown
and switch off "Hardware Physical Keyboard" toggle button
There is a bug in the new version of NOX app. Software keyboard doesn't work after switching to it in settings. To fix this, I installed Gboard using the Play Market.
Go to Tools > AVD Manager > Click on ▾ on the Respective Emulator and > Wipe Data and Restart, will solve the problem on New Android Studio.