Example usage for android.view View setScrollY

List of usage examples for android.view View setScrollY

Introduction

In this page you can find the example usage for android.view View setScrollY.

Prototype

public void setScrollY(int value) 

Source Link

Document

Set the vertical scrolled position of your view.

Usage

From source file:de.gebatzens.sia.fragment.SubstFragment.java

public void resetScrollPositions() {
    List<Fragment> frags = getChildFragmentManager().getFragments();
    if (frags != null) {
        for (Fragment fr : frags) {
            if (fr != null) {
                View v = fr.getView();
                if (v != null) {
                    v = v.findViewWithTag("gg_scroll");
                    if (v != null) {
                        v.setScrollY(0);
                    }//from w w  w.ja v a  2 s  .co m
                }
            }
        }
    }
}