滚到专题

C#中实现文本框和列表框的滚动条自动滚到最底端_控控控-上ke控_新浪博客

文 :1.C#中实现文本框的滚动条自动滚到最底端            this.textBox3.Focus();//获取焦点 this.textBox3.Select(this.textBox3.TextLength, 0);//光标定位到文本最后 this.textBox3.ScrollToCaret();//滚动到光标处 ————————————————————————

Android如何判断scrollview滚到底部

在网上找了一些方案,要么比较复杂,要么无法实现,这里提供一个简易的版本。 scrollView.setOnScrollChangeListener { view: ViewGroup, _, scrollY, _, _ ->if(scrollY == (view.getChildAt(0).measuredHeight - view.measuredHeight)){// 滚动到底部}}