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.
public ScrollView(Context context) sourcepublic ScrollView(Context context, AttributeSet attrs) sourcepublic ScrollView(Context context, AttributeSet attrs, int defStyleAttr) sourcepublic ScrollView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) sourcepublic void addView(View child) sourcepublic void addView(View child, int index) sourcepublic void addView(View child, ViewGroup.LayoutParams params) sourcepublic void addView(View child, int index, ViewGroup.LayoutParams params) sourcepublic boolean isFillViewport() sourcepublic void setFillViewport(boolean fillViewport) sourcepublic boolean isSmoothScrollingEnabled() sourcepublic void setSmoothScrollingEnabled(boolean smoothScrollingEnabled) sourcepublic int getMaxScrollAmount() sourceprotected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) sourceThe 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) sourcepublic void scrollTo(int x, int y) sourcepublic final void smoothScrollBy(int dx, int dy) sourcepublic final void smoothScrollTo(int x, int y) sourcepublic void fling(int velocityY) sourcepublic boolean fullScroll(int direction) sourcepublic boolean pageScroll(int direction) sourcepublic boolean arrowScroll(int direction) sourcepublic boolean dispatchKeyEvent(KeyEvent event) sourcepublic boolean executeKeyEvent(KeyEvent event) sourcepublic boolean onInterceptTouchEvent(MotionEvent ev) sourcepublic boolean onTouchEvent(MotionEvent ev) sourceprotected int computeVerticalScrollRange() sourceprotected int computeVerticalScrollOffset() sourcepublic boolean requestChildRectangleOnScreen(View child, Rect rectangle, boolean immediate) sourcepublic CharSequence getAccessibilityClassName() sourceMade 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.