cのEditTextXML プロパティに、次のプロパティを追加します。EditText
android:imeOptions="actionNext"
これにより、ソフト キーボードの右下隅が [完了] ではなく [次へ] ボタンになります。
EditText 次に、 cで「次へ」ボタンが押されたときのリスナーを設定します。
EditText a = (EditText)findViewById(R.id.a);
EditText c = (EditText)findViewById(R.id.c);
c.setOnEditorActionListener(new OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId, KeyEvent event)
{
// if the user pressed the "Next" button on the soft keyboard
if(actionId==EditorInfo.IME_ACTION_NEXT)
{
a.requestFocus(); // change the focus to the 'a' EditText
}
return true; // keep the keyboard up
}
});
以上です。