I have a HorizontalScrollView with a range of CompoundButtons. I want to find (x, y) for a given child view. I tried using: getLocationOnScreen () getLocalVisibleRect () getChildVisibleRect ()
like this: View tmpView = this.findViewById (viewId); Rect hitRect = new Rect ();
tmpView.getLocalVisibleRect (hitRect);
hitRect is always 0.0 - 0.0.
I need x, y to basically scroll to a specific child view. Any help is appreciated. Thank.
source
share