Setting Android Key Board Type - android

I'm new to Android development. For that reason, I apologize if this is a dumb question. I have honestly tried to figure this out and read a number of related questions without any success.
I have a basic app running in . From the screenshot, you can see how the keyboard focused on numbers displays. I just want to show the basic qwerty-esque keyboard. For the life of me, I can't figure out how to do it. Currently, I've set the imeOption to normal thinking that would do it. I also tried setting the inputType to 'normal' without any luck. Here's the relevant pieces of my Android Layout file.
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:imeOptions="normal"
android:inputType="text"
...
/>
What am I doing wrong? How do I show the basic qwerty-style keyboard in Android? Thank you!

As TanjaV said, this keyboard is for devices with a physical keyboard where the avd will not change it regardless of your input type.
Change your AVD devices to something such as Nexus4, or Nexus One (if you want older model), then you should see the keyboard changing.

Related

Is there a way to restrict the Android soft keyboard to allow ONLY emoji characters?

I have an EditText that can ONLY be a SINGLE Emoji character. I've added code and a filter to ensure this, but I still have a usability problem because the keyboard pops up in NORMAL text mode. It's not obvious to the user that only an Emoji character is allowed.
<EditText
android:id="#+id/activity_emoji"
style="#style/Material.Widget.EditText.Light"
android:layout_width="30dp"
android:layout_height="wrap_content"
android:textColor="#FF000000"
android:text="😎"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true" />
Ideally I could disable all input except Emoji, but that appears to be impossible. Another option would be to have the keyboard pop up already on the Emoji page instead of on the normal alphabet. Is it possible to do that, and if so how?
Seems to me the simple solution would be supporting:
android:inputType="Emoji"
I've added code and a filter to ensure this
Since there is no requirement for an input method editor to offer emoji, you have a slight problem.
I still have a usability problem because the keyboard pops up in NORMAL text mode
Many input method editors only have what you consider to be normal text mode.
Please understand that there are over 26,000 Android device models. These ship with dozens, if not hundreds, of pre-installed keyboards. Users can also install others from the Play Store, F-Droid, and elsewhere. None have to offer emoji. I would expect that relatively few do, though the ones that do (like GBoard) will be the most widely-used ones.
Also, please bear in mind that not all Android devices use soft keyboards. Sometimes, that's a fairly permanent state (e.g., Chromebooks). Sometimes, it is a temporary state (Bluetooth keyboard enabled, USB keyboard plugged in, other assistive device attached).
Is it possible to do that, and if so how?
No, sorry.

PhoneGap in Android: Inputs do not move with soft keyboard

I am helping to style a Banking mobile app, and the company is using PhoneGap to build across all platforms. I am using a Nexus 4 (android) to test the app, and have noticed that when input fields are tapped, the screen does not scroll up with the soft keyboard - many input fields get lost behind the keyboard.
I can NOT have the addressbar at the top of the screen show, so the one fix I found that said to change the xml file fullscreen preference won't work.
How can this be fixed? I have not been able to test on other devices yet.
The plugin suggested in the comments worked.

hide keyboard autosuggest bar

I have tried
android:inputType="textFilter"
android:inputType="textNoSuggestions"
x.setInputType(InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS);
android:inputType="textVisiblePassword"
I can see there are a lot of things to try
Android programmatically disable autocomplete/autosuggest for EditText in emulator
Is there any method that works on all devices? For instance those commands above don't work on my device, yet work for other people.
x.setInputType(InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD);
This works, even though the xml version does not. Probably won't work on all device I install it on. Weird issue.

Android : Writing own "handler" for hardware keyboard?

I own an Asus Transformer (first model) with the US keyboard dock.
However, I'm French, and thus have to interact in French pretty regularly, which does include writing accented letters.
As far as I know, the current workaround for doing that is to basically popup the software keyboard, not very convenient.
One implementation of being able to write accented (and other special letters such as ß) with a traditional QWERTY layout is the one used in Mac OS X. For those who don't know, this is accomplished by pressing alt + a-key-which-usually-makes-a-lot-of-sense (I'm not kidding, they really make sense), that will give you the accent, then the letter which you want to be accented (so alt + e, then e will give you é).
That's the behavior I'd like to implement. However, I don't really find where I'd have to do that.
I looked at the documentation about keyboard devices ( http://source.android.com/tech/input/keyboard-devices.html ) but I don't think that's the right place to do any changes as I don't want to change any keymap or keycodes.
On the other hand, I took a glance at https://github.com/android/platform_frameworks_base/tree/master/core/java/android/inputmethodservice (keyboard.java and keyboardview.java in particular) but I have the impression this is more related to software keyboard.
Does anybody have more clues about this ?
Thanks
I had similar problems with entering Russian characters on TF101. I'm more used to phonetic layout than to standard one.
I was able to modify Android example application SoftKeyboard to accomplish that. You can find code at https://protronika.dyndns.org/websvn/listing.php?repname=FLEXKBD&path=%2F&sc=0 .
Sorry, code is very raw with many things hardcoded. I started that project very recently. So it is in "just works" state.

Different keyboard layouts in Android

I just took a look on different devices and their soft keyboards. They are all looking a bit different. I attach two screenshots. One is from my HTC Desire (Android 2.2), another one from Emulator (Android 2.3).
As you can see on the device the enter key is on device just a symbol, on emulator it is "send".
Can I change it somehow?
I had this problem a year ago, my problem was that the numeric keypad is very different from each provider (not only on style but on the buttons that are shown)
In my personal experience is a pain to try to change that, you would need to create your own SoftKeyboard class with your own images.
If it's not an important issue I recommend to just pass over it, or find a keyboard type that satisfies your needs.
However, I don't know if in the newest versions of Android you get an easier way to customize keyboards.
Good luck on there :)

Categories

Resources