I want to set, in java code, my EditText
so that, when i click will display only the Cursor
but not the android standard keyboard. How can I do this?
Thanks
I EDITED:
I have an array of EditText:
for (i=0;i<N*N;i++) {
value[i].setOnTouchListener(this);
value[i].setOnClickListener(this);
value[i].setOnFocusChangeListener(this);
}
and this method:
@Override
public void onClick(View v) {
for (i =0 ; i < N*N; i++) {
if(v == value[i]) {
variable = 1;
if(jey!=i) {
jey=i;
showDialog(CUSTOM_DIALOG);
}
}
}
}
@Override
public void onTouch(View v, MotionEvent event) {
for (i =0 ; i < N*N; i++) {
if(v == value[i]) {
variable = 1;
if(jey!=i) {
jey=i;
showDialog(CUSTOM_DIALOG);
}
}
}
}
@Override
public void onFocusChange(View v, boolean hasFocus) {
for (i =0 ; i < N*N; i++){
if(v == value[i]) {
variable =1;
if(jey!=i) {
jey=i;
imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(value[jey].getWindowToken(), 0);
}
}
}
}
but in this way does not work I still see the standard keyboard