소프트 키 보드를 표시하고 싶지만 작동하지 않습니다. 다음은 내 코드입니다 : 내가 화면을 터치 할 때Android : 사용자 정의 edittext에서 softkeaboard 트리거
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
myTextView myTextView = new myTextView(this);
setContentView(myTextView);
}
public class myTextView extends EditText{
public boolean onTouchEvent(){
if(action == ACTION_DOWN){
super.onTouchEvent(event);
} }
의 softkeyboard가 나타나지 않지만,에 AlertDialog "편집 텍스트"때 긴 터치 그들 정상 edittexts에 나타나는 나타납니다. 하지 OnCreate 이 추가 코드는 더 애정이 없습니다 : 도움
InputMethodManager input = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
input.showSoftInput(myTextView, 0);
감사합니다, Fr4gg0r