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.
精彩评论