TextView实现文字滚动需要以下几个要点: 1.文字长度长于可显示范围:android:singleLine="true" 2.设置可滚到,或显示样式:android:ellipsize="marquee" 3.自定义滚动的ScrollingTextView public class ScrollingTextView extends TextView { public ScrollingTextView(Context context, Attri
C#中一个RichTextBox,当新写入内容时,超过当前显示区域后,自动滚动到最低端,方便查看内容. private void txtInfo_TextChanged(object sender, EventArgs e) { txtInfo.SelectionStart = txtInfo.Text.Length; //Set the current caret position at the end txtInfo.ScrollToCaret(); //Now scroll