How to programmatically disable predictive text (with no EditText)
android
Solution
Something I've used is below- specifically the tag "textNoSuggestions" I think would work for you!
<EditText android:layout_marginLeft="10px"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginRight="10px"
android:id="@+id/setupactivity_ftpsite"
android:inputType="textNoSuggestions|textUri">
Problem
There is an Android application containing self-made input field (no `TextView` or `EditText` elements), so I have to show/hide keyboard, handle user input and show entered symbols on my own. I need to disable predictive text mode for standard view. Unfortunately Android `View` class (android.view.View) has no function `setInputType`. There is a probable solution. Get `InputConnection` of given view and change its properties. But I cannot find how to get and set instance of current `InputConnection`, unfortunately function `onCreateInputConnection` is not called either. Is there any method to disable predictive text mode for standard view?