2011-09-06 6 views
1

ime actionGo 단순히 HTC Evo 4G와 같은 특정 기기에서 작동하지 않습니다. 그것은 여기에 모토로라 ATRIX와 드로이드 X의Android에서 ime actionGo가 특정 기기에서 작동하지 않습니다.

를 작동하는 코드입니다

<EditText 
      android:id="@+id/password" 
      android:layout_width="fill_parent" 
      android:layout_height="40dp" 
      android:layout_centerHorizontal="true" 
      android:hint="@string/password_hint" 
      android:password="true" 
      android:inputType="textPassword" 
      android:autoText="false" 
      android:imeOptions="actionGo"/> 


TextView.OnEditorActionListener listener = new TextView.OnEditorActionListener() 
    { 
     public boolean onEditorAction(TextView exampleView, int actionId, KeyEvent event) 
     { 
      if(actionId == EditorInfo.IME_ACTION_GO) 
      { 
       loginValidation(); 
      } 

      return true; 
    }}; 

    password.setOnEditorActionListener(listener); 

답변

2

이 버그 것 같다. 제조업체마다 휴대 전화 용으로 맞춤 키보드를 만들어 안드로이드 표준 키보드로 완전히 작동하지 않을 수도 있습니다. 이 문제는 이전에 제기되었습니다. 대부분의 사람들은 onKey 이벤트를 무시하거나 TextWatcher 클래스를 사용하여이 문제를 해결합니다. 버그 내가 최근에 우연히이

http://code.google.com/p/android/issues/detail?id=2882

0

에 대해 제기하고 사용자가이 점점 근무 키보드를 통해 줄을 추가 할 수있는 걱정하지 않으면 표시 버튼을 "이동"되었습니다 최대 :

android:singleLine="true" 
관련 문제