L
L
LyoneNET2015-08-01 07:01:26
Android
LyoneNET, 2015-08-01 07:01:26

How to use TextEdit without keyboard?

In general, I have a GridView with many characters. When you click on a specific character, it is displayed in textedit. It's kind of like an alternative keyboard. The problem is that when you click on textedit, the system keyboard pops up, which you actually need to get rid of. There are more input fields in the form, but it is necessary that the keyboard is not shown in only one field, while it is necessary that the focus be set, that is, the caret can be freely moved.
In general, how can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2015-08-01
@LioneNET

Also did this:

InputMethodManager imm = (InputMethodManager)getSystemService(
                            Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(mViewPager.getWindowToken(), 0);

E
Emin, 2015-08-01
@Ewintory

<EditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" 
        android:inputType="none"/>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question