ScrollView scroll top - Android User Interface

Android examples for User Interface:ScrollView

Description

ScrollView scroll top

Demo Code


//package com.java2s;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ScrollView;

public class Main {
    public static void top(@NonNull final ScrollView scrollView) {
        scrollView.fullScroll(View.FOCUS_UP);
    }// ww w.  j  a v  a2  s .c  o m
}

Related Tutorials