Tenho um edit com o evento setOnFocusChangeListener e nele estou bloqueando a abertura do teclado. como vc podem ver abaixo:
Quando entrasse o focus no editText eu gostaria de selecionar todo o conteudo, mais não estou conseguindo.
Alguem tem alguma dica?
edtDescEmb.setOnFocusChangeListener(newOnFocusChangeListener(){publicvoidonFocusChange(Viewv,booleanhasFocus){// Travando a Abertura do Teclado............................edtDescEmb.setInputType(InputType.TYPE_NULL);if(hasFocus){Log.e("Passou","Focus edtDescEmb");edtDescEmb.selectAll();//edtDescEmb.requestFocus(); //edtDescEmb.s//edtDescEmb.setSelection(0, edtDescEmb.getText().length() - 1);}else{}}});