android scrollView 滚动 子View 置顶

很简单:

1.获取View的Y轴或X轴:x = view.getY(); 或 y = view.getX();

2.scrollView.smoothScrollTo(x,0); 或 scrollView.smoothScrollTo(0, y)

你可能感兴趣的:(android,scrollView,滚动,子View)