2014-05-21 1 views
0

나는 두 개의 편집 문구가 있으며 사용자가 softKeyboard에서 "다음"을 누르면 두 번째 편집 문구에 집중할 필요가 있습니다. 가 여기 내 레이아웃입니다 :nextFocusDown on empty EditText

    <EditText 
           android:id="@+id/Nom" 
           android:singleLine="true" 
           android:nextFocusDown="@+id/Prenom" 
           android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:paddingLeft="5dp" 
           android:text="Nom" 
           android:textSize="35dp" 
           android:textStyle="bold" /> 


          <EditText 
          android:id="@+id/Prenom" 
          android:singleLine="true" 
          android:layout_width="wrap_content" 
          android:layout_height="wrap_content" 
          android:enabled="false" 
          android:paddingLeft="5dp"   
          android:textSize="25dp" 
          android:textStyle="bold" /> 

만큼 두 번째가 비어있는, 더 커서는 배치되지 않고 나는 "비활성 inputconnection에 beginbatchedit"를 얻었다.

그러나 텍스트에 ""을 넣을 때 아무런 문제가 없습니다. 어떤 아이디어?

답변

0

당신은 첫 번째 편집에서

android:enabled="false" 

을 제거

android:nextFocusDown="@+id/Prenom" 

제거 할 수 있습니다 상자를 누르고 두 개의 연속 텍스트 상자가있는 경우 입력 유형을 으로 지정하십시오. 소프트 키를 누르면 기본적으로 다음 텍스트 상자로 이동합니다. 자세한 정보 softKeyboard

+0

당신은 그것을 가지고 있습니다 :-) 감사합니다 그것은 매력처럼 작동합니다 –

0

아마 두 번째 글고의 활성화 = "false"를, 단지 그것을 제거된다

     <EditText 
         android:id="@+id/Prenom" 
         android:singleLine="true" 
         android:layout_width="wrap_content" 
         android:layout_height="wrap_content" 
         android:paddingLeft="5dp"   
         android:textSize="25dp" 
         android:textStyle="bold" /> 
+0

프로그래밍 방식으로 제거합니다. Pb 위에서 해결되었습니다. Tks에게 많은 도움을 주려합니다. –