ScrollView

Class of android.widget · ScrollView.java · Android's reference

public class ScrollView extends FrameLayout

ScrollView ← FrameLayout ← ViewGroup ← View

A frame of one child that scrolls vertically when the child is taller than the frame.

Constructors

public ScrollView(Context context) source
public ScrollView(Context context, AttributeSet attrs) source
public ScrollView(Context context, AttributeSet attrs, int defStyleAttr) source
public ScrollView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public void addView(View child) source
public void addView(View child, int index) source
public void addView(View child, ViewGroup.LayoutParams params) source
public void addView(View child, int index, ViewGroup.LayoutParams params) source
public boolean isFillViewport() source
public void setFillViewport(boolean fillViewport) source
public boolean isSmoothScrollingEnabled() source
public void setSmoothScrollingEnabled(boolean smoothScrollingEnabled) source
public int getMaxScrollAmount() source
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) source

The child gets the width of the frame, and the height that it wants.

protected void onLayout(boolean changed, int l, int t, int r, int b) source
public void scrollTo(int x, int y) source
public final void smoothScrollBy(int dx, int dy) source
public final void smoothScrollTo(int x, int y) source
public void fling(int velocityY) source
public boolean fullScroll(int direction) source
public boolean pageScroll(int direction) source
public boolean arrowScroll(int direction) source
public boolean dispatchKeyEvent(KeyEvent event) source
public boolean executeKeyEvent(KeyEvent event) source
public boolean onInterceptTouchEvent(MotionEvent ev) source
public boolean onTouchEvent(MotionEvent ev) source
protected int computeVerticalScrollRange() source
protected int computeVerticalScrollOffset() source
public boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) source
public CharSequence getAccessibilityClassName() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.