is ScrollView Or WebView To Top - Android User Interface

Android examples for User Interface:WebView

Description

is ScrollView Or WebView To Top

Demo Code

import android.view.View;

public class Main {
  public static boolean isScrollViewOrWebViewToTop(View view) {
    return view != null && view.getScrollY() == 0;
  }/*from ww  w . j  ava  2  s  . c o  m*/
}

Related Tutorials