Example usage for Java android.widget HorizontalScrollView fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addView(View child) |
void | addView(View child, int index) |
void | addView(View child, ViewGroup.LayoutParams params) |
boolean | canScrollHorizontally(int direction) Check if this view can be scrolled horizontally in a certain direction. |
boolean | fullScroll(int direction) Handles scrolling in response to a "home/end" shortcut press. |
View | getChildAt(int index) Returns the view at the specified position in the group. |
int | getChildCount() Returns the number of children in the group. |
void | getDrawingRect(Rect outRect) Return the visible drawing bounds of your view. |
int | getHeight() Return the height of your view. |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
void | getLocationOnScreen(@Size(2) int[] outLocation) Computes the coordinates of this view on the screen. |
int | getMeasuredHeight() Like #getMeasuredHeightAndState() , but only returns the raw height component (that is the result is masked by #MEASURED_SIZE_MASK ). |
int | getScrollX() Return the scrolled left position of this view. |
int | getScrollY() Return the scrolled top position of this view. |
int | getWidth() Return the width of your view. |
float | getX() The visual x position of this view, in pixels. |
void | measure(int widthMeasureSpec, int heightMeasureSpec) This is called to find out how big a view should be. |
boolean | post(Runnable action) Causes the Runnable to be added to the message queue. |
boolean | postDelayed(Runnable action, long delayMillis) Causes the Runnable to be added to the message queue, to be run after the specified amount of time elapses. |
void | scrollTo(int x, int y) This version also clamps the scrolling to the bounds of our child. |
void | setBackground(Drawable background) Set the background to a given Drawable, or remove the background. |
void | setHorizontalScrollBarEnabled(boolean horizontalScrollBarEnabled) Define whether the horizontal scrollbar should be drawn or not. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setOnTouchListener(OnTouchListener l) Register a callback to be invoked when a touch event is sent to this view. |
void | setScrollX(int value) Set the horizontal scrolled position of your view. |
void | smoothScrollBy(int dx, int dy) Like View#scrollBy , but scroll smoothly instead of immediately. |
void | smoothScrollTo(int x, int y) Like #scrollTo , but scroll smoothly instead of immediately. |