开发者

Android: Detect Scroll Event for EditText

开发者 https://www.devze.com 2023-04-05 21:48 出处:网络
I am having problems with a seemingly very simple thing- I want to run code every time the user (or the program) scrolls the EditText up or down, in the same way a TextChanged listener allows you to r

I am having problems with a seemingly very simple thing- I want to run code every time the user (or the program) scrolls the EditText up or down, in the same way a TextChanged listener allows you to run code every time the user or program changes the text. Is this possible开发者_高级运维? Thanks!


Try extending EditText and overriding:

onScrollChanged(int l, int t, int oldl, int oldt)

which is inherited from TextView.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号