您的位置:首页 > 移动开发 > Android开发

android EditText 自动滚动条 显示最新内容

2012-04-06 20:21 519 查看
<EditText android:id="@+id/showall"

android:layout_width="fill_parent"

android:layout_height="260px"

android:background="#FFFFFF"

android:padding="5px"

android:scrollbars="vertical"

android:singleLine="false"

android:maxLines="14"

android:focusable="true"

android:clickable="true"

android:textColor="#000000"/>

showAll.setSelection(showAll.getText().length() , showAll.getText().length());

showAll.setMovementMethod(ScrollingMovementMethod.getInstance());
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: