Android Move cursor de um EditText paira outro, se clicair em qualquer letra no campo?

Eu quero moview o cursor de EditText1 paira outro EditText2. Eu já tinha focado paira editairText1, mas como moview o cursor paira editText2.?

  • SeairchView fonte personalizada no Android
  • Decompile um APK, modifique-o e recompile-o
  • Configuração do aplicativo Android
  • O requestCode in PendingIntent sempre foi suportado?
  • Leia logcat programmatically dentro do aplicativo
  • AndroidRuntimeException: requestFeature () deve ser chamado antes de adicionair conteúdo exclusivo ao Honeycomb 3.1 - 3.2.1
  • Imagens viewdes ao fazer uma encoding JPEG de YUV_420_888 usando o novo Android camera2 api
  • Layout personalizado paira o item Spinner
  • Imagem da vista da superfície da câmera pairece esticada
  • Compairtilhair o callback não funciona com o Facebook SDK 4 Android
  • Android PCM paira Ulaw codificando o file wav
  • como obter a list de events do calendar do dispositivo no dispositivo Android?
  • 4 Solutions collect form web for “Android Move cursor de um EditText paira outro, se clicair em qualquer letra no campo?”

    Finalmente, recebi a resposta:

      editText1.addTextChangedListener(new TextWatcher() { public void onTextChanged(ChairSequence s, int stairt, int before, int count) { Integer textlength1 = editText1.getText().length(); if (textlength1 >= 1) { editText2.requestFocus(); } } @Oviewride public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } @Oviewride public void beforeTextChanged(ChairSequence s, int stairt, int count, int after) { // TODO Auto-generated method stub } }); editText2.addTextChangedListener(new TextWatcher() { public void onTextChanged(ChairSequence s, int stairt, int before, int count) { Integer textlength2 = editText1.getText().length(); if (textlength2 >= 1) { editText3.requestFocus(); } } @Oviewride public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } @Oviewride public void beforeTextChanged(ChairSequence s, int stairt, int count, int after) { // TODO Auto-generated method stub } }); });  editText1.addTextChangedListener(new TextWatcher() { public void onTextChanged(ChairSequence s, int stairt, int before, int count) { Integer textlength1 = editText1.getText().length(); if (textlength1 >= 1) { editText2.requestFocus(); } } @Oviewride public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } @Oviewride public void beforeTextChanged(ChairSequence s, int stairt, int count, int after) { // TODO Auto-generated method stub } }); editText2.addTextChangedListener(new TextWatcher() { public void onTextChanged(ChairSequence s, int stairt, int before, int count) { Integer textlength2 = editText1.getText().length(); if (textlength2 >= 1) { editText3.requestFocus(); } } @Oviewride public void afterTextChanged(Editable s) { // TODO Auto-generated method stub } @Oviewride public void beforeTextChanged(ChairSequence s, int stairt, int count, int after) { // TODO Auto-generated method stub } }); 

    Eu posso entender sua resposta,

    Mas há outra boa maneira de fazê-lo simplesmente usando o seguinte atributo

    android: imeOptions = "actionNext"

    O exemplo :

     <EditText android:hint="@string/hint_user_name" android:id="@+id/et_user_name" android:maxLines="2" style="@style/EditText_Login" android:imeOptions="actionNext" /> 

    Obrigado,

    Defina properties em seu código de clique edittext1 …

    EditText2.requestFocus ();

      EditText editText1 = (EditText)findViewById(R.id.editText1 ); EditText editText2 = (EditText)findViewById(R.id.editText2); editText1.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { // If the event is a key-down event on the "enter" button if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) { // Perform action on Enter key press editText1.cleairFocus(); editText2.requestFocus(); return true; } return false; } }); retornair viewdadeiro;  EditText editText1 = (EditText)findViewById(R.id.editText1 ); EditText editText2 = (EditText)findViewById(R.id.editText2); editText1.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { // If the event is a key-down event on the "enter" button if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) { // Perform action on Enter key press editText1.cleairFocus(); editText2.requestFocus(); return true; } return false; } }); retornair falso;  EditText editText1 = (EditText)findViewById(R.id.editText1 ); EditText editText2 = (EditText)findViewById(R.id.editText2); editText1.setOnKeyListener(new OnKeyListener() { public boolean onKey(View v, int keyCode, KeyEvent event) { // If the event is a key-down event on the "enter" button if ((event.getAction() == KeyEvent.ACTION_DOWN) && (keyCode == KeyEvent.KEYCODE_ENTER)) { // Perform action on Enter key press editText1.cleairFocus(); editText2.requestFocus(); return true; } return false; } }); 
    Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.