0

Hi I have an edittext that when selected the keyboard pops up and the screen does scroll up to bring the edittext into view as it should, problem is only the 1st line is visible above the keyboard (the edittext is 6 lines high) - it only将显示器拉高以使第一行进入视野

我可以点击它并输入文本,每一行都会将edittext滚动到屏幕上

有没有办法让整个编辑文本最初可见,即向上滚动直到底部可见。

希望这是有道理的,谢谢

4

1 回答 1

0

尝试使用:

EditText editText1 = (EditText)findViewById(R.id.EditText1);
editText1.setSelection(editText1.getText().length());

它应该使光标立即在文本末尾移动..

因此,用户将看到最初显示在edittext中的所有文本

于 2013-07-14T02:56:09.247 回答