Example usage for Java android.widget TableRow fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addView(View child, int index) Adds a child view. |
void | addView(View child) Adds a child view. |
T | findViewById(@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. |
int | getBottom() Bottom position of this view relative to its parent. |
View | getChildAt(int index) Returns the view at the specified position in the group. |
int | getChildCount() Returns the number of children in the group. |
Context | getContext() Returns the context the view is running in, through which it can access the current theme, resources, etc. |
ViewGroup.LayoutParams | getLayoutParams() Get the LayoutParams associated with this view. |
int | getLeft() Left position of this view relative to its parent. |
ViewParent | getParent() Gets the parent of this view. |
int | getRight() Right position of this view relative to its parent. |
int | getTop() Top position of this view relative to its parent. |
int | indexOfChild(View child) Returns the position in the group of the specified child view. |
void | removeAllViews() Call this method to remove all child views from the ViewGroup. |
void | setBackground(Drawable background) Set the background to a given Drawable, or remove the background. |
void | setBackgroundColor(@ColorInt int color) Sets the background color for this view. |
void | setBackgroundResource(@DrawableRes int resid) Set the background to a given resource. |
void | setClickable(boolean clickable) Enables or disables click events for this view. |
void | setGravity(int gravity) Describes how the child views are positioned. |
void | setId(@IdRes int id) Sets the identifier for this view. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with this view. |
void | setLongClickable(boolean longClickable) Enables or disables long click events for this view. |
void | setOnClickListener(@Nullable OnClickListener l) Register a callback to be invoked when this view is clicked. |
void | setOnLongClickListener(@Nullable OnLongClickListener l) Register a callback to be invoked when this view is clicked and held. |
void | setPadding(int left, int top, int right, int bottom) Sets the padding. |
void | setTag(final Object tag) Sets the tag associated with this view. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |
void | setWeightSum(float weightSum) Defines the desired weights sum. |