Java android.widget HorizontalScrollView fields, constructors, methods, implement or subclass

Example usage for Java android.widget HorizontalScrollView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget HorizontalScrollView.

The text is from its open source code.

Subclass

android.widget.HorizontalScrollView has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidaddView(View child)
voidaddView(View child, int index)
voidaddView(View child, ViewGroup.LayoutParams params)
booleancanScrollHorizontally(int direction)
Check if this view can be scrolled horizontally in a certain direction.
booleanfullScroll(int direction)

Handles scrolling in response to a "home/end" shortcut press.

ViewgetChildAt(int index)
Returns the view at the specified position in the group.
intgetChildCount()
Returns the number of children in the group.
voidgetDrawingRect(Rect outRect)
Return the visible drawing bounds of your view.
intgetHeight()
Return the height of your view.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
voidgetLocationOnScreen(@Size(2) int[] outLocation)

Computes the coordinates of this view on the screen.

intgetMeasuredHeight()
Like #getMeasuredHeightAndState() , but only returns the raw height component (that is the result is masked by #MEASURED_SIZE_MASK ).
intgetScrollX()
Return the scrolled left position of this view.
intgetScrollY()
Return the scrolled top position of this view.
intgetWidth()
Return the width of your view.
floatgetX()
The visual x position of this view, in pixels.
voidmeasure(int widthMeasureSpec, int heightMeasureSpec)

This is called to find out how big a view should be.

booleanpost(Runnable action)

Causes the Runnable to be added to the message queue.

booleanpostDelayed(Runnable action, long delayMillis)

Causes the Runnable to be added to the message queue, to be run after the specified amount of time elapses.

voidscrollTo(int x, int y)

This version also clamps the scrolling to the bounds of our child.

voidsetBackground(Drawable background)
Set the background to a given Drawable, or remove the background.
voidsetHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled)

Define whether the horizontal scrollbar should be drawn or not.

voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetOnTouchListener(OnTouchListener l)
Register a callback to be invoked when a touch event is sent to this view.
voidsetScrollX(int value)
Set the horizontal scrolled position of your view.
voidsmoothScrollBy(int dx, int dy)
Like View#scrollBy , but scroll smoothly instead of immediately.
voidsmoothScrollTo(int x, int y)
Like #scrollTo , but scroll smoothly instead of immediately.