有两个EditText
,当加载页面时,文本在first EditText中设置,所以现在光标将位于EditText
的起始位置,我想要set cursor position in the second EditText,它不包含任何数据.怎么做?
有两个EditText
,当加载页面时,文本在first EditText中设置,所以现在光标将位于EditText
的起始位置,我想要set cursor position in the second EditText,它不包含任何数据.怎么做?
其中,Position为整型:
editText1.setSelection(position)