スクロールレイアウトにいくつかの編集テキストがあります。下部にボタンがあります。
実際、ビューを開くたびに、最初のeditTextが自動的にフォーカスを要求します。ボタンにフォーカスを合わせてほしい。
私はこれを試しましたが、成功しませんでした:
final ScrollView s = (ScrollView)findViewById(R.id.ScrollView01);
s.post(new Runnable() {
public void run() {
Button button =(Button) findViewById(R.id.SaveProfileEditingButton);
button.requestFocus();
}
});
hlepありがとうございます。