Wish (solved, it's there)Turn off IME suggestions

anOparator

Active Member
Licensed User
Longtime User
Turn off IME suggestions:
From:
https://developer.android.com/training/keyboard-input/style.html#Type
Specify the Keyboard Type.
Makes available.

For example, if you'd like an input method for entering a phone number, use the "phone" value:

<EditText
android:id="@+id/phone"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:hint="@string/phone_hint"
android:inputType="phone" />
Resulting in a Numeric keyboard with no suggestions.
Having read a post mentioning that there is no API for IME, I still WISH there is a way to disable 'android:hint="@string/phone_hint"'
OR
Provide Auto-complete Suggestions.
AS an enhanced IME library.
 

anOparator

Active Member
Licensed User
Longtime User
I'm working with a Searchview and there is no .InputType method.
But there is :
android:hint="@string/phone_hint
and
Provide Auto-complete Suggestions
for IME.
I wish one of these could be turned off for the alphanumeric IME, much like.
https://developer.android.com/images/ui/edittext-phone.png
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
Searchview is a class, then its code is available.

You could add these routines to it (or only the second one):
B4X:
Public Sub GetEditText As EditText
    Return et
End Sub

B4X:
Public Sub SetImeSuggestionsOff
    et.InputType = Bit.Or(et.InputType, 524288)
End Sub
 
Top