1

Android Difference between View.getLeft() vs View.getScrollX()

view story
linux-howto

http://stackoverflow.com – what is the difference between View.getLeft() vs View.getScrollX() ? Please don't copy and paste definition from the documentation, because I am about to do it for you below getScrollX() Return the scrolled left position of this view. getLeft() Left position of this view relative to its parent I think those 2 values should be the same, but a sample program of mine, if i do View.scrollBy(20, 0) i see that getScrollX() will return 20 and the view is actually moved to the right, but getLeft() remains to be zero i am confused, because if visually the view is being scrolled to the right by (HowTos)