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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

TableRow(Context context)

Creates a new TableRow for the given context.

TableRow(Context context, AttributeSet attrs)

Creates a new TableRow for the given context and with the specified set attributes.

Method

voidaddView(View child, int index)
Adds a child view.
voidaddView(View child)

Adds a child view.

TfindViewById(@IdRes int id)
Finds the first descendant view with the given ID, the view itself if the ID matches #getId() , or null if the ID is invalid (< 0) or there is no matching view in the hierarchy.
intgetBottom()
Bottom position of this view relative to its parent.
ViewgetChildAt(int index)
Returns the view at the specified position in the group.
intgetChildCount()
Returns the number of children in the group.
ContextgetContext()
Returns the context the view is running in, through which it can access the current theme, resources, etc.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
intgetLeft()
Left position of this view relative to its parent.
ViewParentgetParent()
Gets the parent of this view.
intgetRight()
Right position of this view relative to its parent.
intgetTop()
Top position of this view relative to its parent.
intindexOfChild(View child)
Returns the position in the group of the specified child view.
voidremoveAllViews()
Call this method to remove all child views from the ViewGroup.
voidsetBackground(Drawable background)
Set the background to a given Drawable, or remove the background.
voidsetBackgroundColor(@ColorInt int color)
Sets the background color for this view.
voidsetBackgroundResource(@DrawableRes int resid)
Set the background to a given resource.
voidsetClickable(boolean clickable)
Enables or disables click events for this view.
voidsetGravity(int gravity)
Describes how the child views are positioned.
voidsetId(@IdRes int id)
Sets the identifier for this view.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetLongClickable(boolean longClickable)
Enables or disables long click events for this view.
voidsetOnClickListener(@Nullable OnClickListener l)
Register a callback to be invoked when this view is clicked.
voidsetOnLongClickListener(@Nullable OnLongClickListener l)
Register a callback to be invoked when this view is clicked and held.
voidsetPadding(int left, int top, int right, int bottom)
Sets the padding.
voidsetTag(final Object tag)
Sets the tag associated with this view.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.
voidsetWeightSum(float weightSum)
Defines the desired weights sum.