开发者

Android: Detect Scroll Event for EditText

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜