TableRow.LayoutParams
public
static
class
TableRow.LayoutParams
extends LinearLayout.LayoutParams
Set of layout parameters used in table rows.
Summary
Fields |
public
int |
column
The column index of the cell represented by the widget.
|
public
int |
span
The number of columns the widgets spans over.
|
Protected methods |
void
|
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
Extracts the layout parameters from the supplied attributes.
|
Inherited methods |
From class
android.widget.LinearLayout.LayoutParams
|
From class
android.view.ViewGroup.MarginLayoutParams
|
From class
android.view.ViewGroup.LayoutParams
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
XML attributes
android:layout_column
The index of the column in which this child should be.
May be an integer value, such as "100
".
android:layout_span
Defines how many columns this child should span. Must be >= 1.
May be an integer value, such as "100
".
Fields
column
public int column
The column index of the cell represented by the widget.
span
public int span
The number of columns the widgets spans over.
Public constructors
LayoutParams
public LayoutParams (Context c,
AttributeSet attrs)
Parameters |
c |
Context |
attrs |
AttributeSet |
LayoutParams
public LayoutParams (int w,
int h)
Sets the child width and the child height.
Parameters |
w |
int : the desired width |
h |
int : the desired height |
LayoutParams
public LayoutParams (int w,
int h,
float initWeight)
Sets the child width, height and weight.
Parameters |
w |
int : the desired width |
h |
int : the desired height |
initWeight |
float : the desired weight |
Protected methods
setBaseAttributes
protected void setBaseAttributes (TypedArray a,
int widthAttr,
int heightAttr)
Extracts the layout parameters from the supplied attributes.
Parameters |
a |
TypedArray : the style attributes to extract the parameters from |
widthAttr |
int : the identifier of the width attribute |
heightAttr |
int : the identifier of the height attribute |