I making an application with my own keyboard and I want to completely DISABLE the android default virtual keyboard.
I tried this:
myEditText.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(keresetEditText.getWindowToken(), 0);
}
});
It is working very well, but accidently I just found an error that really bugs me to the hell:
When I slide down my finger on the EditText the soft keyboard just appear! So the conclusion is: the onClickListener just not running while i slide, and not tap.
I tried onTouchListener, but it just didn't work! Any tips how could I completely disable virtual keyboard ? I don't need it in the entire application.
Other thing: I could make an other question to stackoverflow but I think its logical here so: When I click on the EditText's cursor, i can move it in the text inside my EditText, but i dont want it to enabled like this. Can I disable the cursors MOVEability ??? So i need the blinking cursor but just totally in stayed position.