Example usage for Java android.widget TableLayout fields, constructors, methods, implement or subclass
The text is from its open source code.
TableLayout(Context context) Creates a new TableLayout for the given context. |
void | addView(View child) |
void | addView(View child, int index) |
void | addView(View child, ViewGroup.LayoutParams params) |
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. |
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. |
int | getMeasuredHeight() Like #getMeasuredHeightAndState() , but only returns the raw height component (that is the result is masked by #MEASURED_SIZE_MASK ). |
ViewParent | getParent() Gets the parent of this view. |
int | getWidth() Return the width of your view. |
int | indexOfChild(View child) Returns the position in the group of the specified child view. |
boolean | post(Runnable action) Causes the Runnable to be added to the message queue. |
void | removeAllViews() Call this method to remove all child views from the ViewGroup. |
void | removeView(View view) Note: do not invoke this method from #draw(android.graphics.Canvas) , #onDraw(android.graphics.Canvas) , #dispatchDraw(android.graphics.Canvas) or any related method. |
void | removeViewAt(int index) Removes the view at the specified position in the group. |
void | removeViews(int start, int count) Removes the specified range of views from the group. |
void | setAlpha(@FloatRange(from = 0.0, to = 1.0) float alpha) Sets the opacity of the view to a value from 0 to 1, where 0 means the view is completely transparent and 1 means the view is completely opaque. |
void | setBackgroundColor(@ColorInt int color) Sets the background color for this view. |
void | setColumnCollapsed(int columnIndex, boolean isCollapsed) Collapses or restores a given column. |
void | setColumnShrinkable(int columnIndex, boolean isShrinkable) Makes the given column shrinkable or not. |
void | setColumnStretchable(int columnIndex, boolean isStretchable) Makes the given column stretchable or not. |
void | setLayoutParams(ViewGroup.LayoutParams params) Set the layout parameters associated with 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 | setShrinkAllColumns(boolean shrinkAllColumns) Convenience method to mark all columns as shrinkable. |
void | setStretchAllColumns(boolean stretchAllColumns) Convenience method to mark all columns as stretchable. |
void | setVisibility(@Visibility int visibility) Set the visibility state of this view. |
void | startAnimation(Animation animation) Start the specified animation now. |