|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.View
android.view.ViewGroup
android.widget.AbsoluteLayout
FrameLayout, RelativeLayout
or a custom layout instead.
@Deprecated public class AbsoluteLayout
A layout that lets you specify exact locations (x/y coordinates) of its children. Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning.
XML attributes
See ViewGroup Attributes, View Attributes
| Nested Class Summary | |
|---|---|
static class |
AbsoluteLayout.LayoutParams
Deprecated. Per-child layout information associated with AbsoluteLayout. |
| Nested classes/interfaces inherited from class android.view.ViewGroup |
|---|
ViewGroup.MarginLayoutParams, ViewGroup.OnHierarchyChangeListener |
| Nested classes/interfaces inherited from class android.view.View |
|---|
View.BaseSavedState, View.MeasureSpec, View.OnClickListener, View.OnCreateContextMenuListener, View.OnFocusChangeListener, View.OnKeyListener, View.OnLongClickListener, View.OnTouchListener |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AbsoluteLayout(Context context)
Deprecated. |
|
AbsoluteLayout(Context context,
AttributeSet attrs)
Deprecated. |
|
AbsoluteLayout(Context context,
AttributeSet attrs,
int defStyle)
Deprecated. |
|
| Method Summary | |
|---|---|
protected boolean |
checkLayoutParams(ViewGroup.LayoutParams p)
Deprecated. |
protected ViewGroup.LayoutParams |
generateDefaultLayoutParams()
Deprecated. Returns a set of layout parameters with a width of ViewGroup.LayoutParams.WRAP_CONTENT,
a height of ViewGroup.LayoutParams.WRAP_CONTENT
and with the coordinates (0, 0). |
ViewGroup.LayoutParams |
generateLayoutParams(AttributeSet attrs)
Deprecated. Returns a new set of layout parameters based on the supplied attributes set. |
protected ViewGroup.LayoutParams |
generateLayoutParams(ViewGroup.LayoutParams p)
Deprecated. Returns a safe set of layout parameters based on the supplied layout params. |
protected void |
onLayout(boolean changed,
int l,
int t,
int r,
int b)
Deprecated. Called from layout when this view should assign a size and position to each of its children. |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
Deprecated. Measure the view and its content to determine the measured width and the measured height. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface android.view.ViewParent |
|---|
createContextMenu, getParent, isLayoutRequested, requestLayout |
| Constructor Detail |
|---|
public AbsoluteLayout(Context context)
public AbsoluteLayout(Context context,
AttributeSet attrs)
public AbsoluteLayout(Context context,
AttributeSet attrs,
int defStyle)
| Method Detail |
|---|
protected void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
View
Measure the view and its content to determine the measured width and the
measured height. This method is invoked by View.measure(int, int) and
should be overriden by subclasses to provide accurate and efficient
measurement of their contents.
CONTRACT: When overriding this method, you
must call View.setMeasuredDimension(int, int) to store the
measured width and height of this view. Failure to do so will trigger an
IllegalStateException, thrown by
View.measure(int, int). Calling the superclass'
View.onMeasure(int, int) is a valid use.
The base class implementation of measure defaults to the background size,
unless a larger size is allowed by the MeasureSpec. Subclasses should
override View.onMeasure(int, int) to provide better measurements of
their content.
If this method is overridden, it is the subclass's responsibility to make
sure the measured height and width are at least the view's minimum height
and width (View.getSuggestedMinimumHeight() and
View.getSuggestedMinimumWidth()).
onMeasure in class ViewwidthMeasureSpec - horizontal space requirements as imposed by the parent.
The requirements are encoded with
View.MeasureSpec.heightMeasureSpec - vertical space requirements as imposed by the parent.
The requirements are encoded with
View.MeasureSpec.View.getMeasuredWidth(),
View.getMeasuredHeight(),
View.setMeasuredDimension(int, int),
View.getSuggestedMinimumHeight(),
View.getSuggestedMinimumWidth(),
View.MeasureSpec.getMode(int),
View.MeasureSpec.getSize(int)protected ViewGroup.LayoutParams generateDefaultLayoutParams()
ViewGroup.LayoutParams.WRAP_CONTENT,
a height of ViewGroup.LayoutParams.WRAP_CONTENT
and with the coordinates (0, 0).
generateDefaultLayoutParams in class ViewGroup
protected void onLayout(boolean changed,
int l,
int t,
int r,
int b)
ViewGroup
onLayout in class ViewGroupchanged - This is a new size or position for this viewl - Left position, relative to parentt - Top position, relative to parentr - Right position, relative to parentb - Bottom position, relative to parentpublic ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)
ViewGroup
generateLayoutParams in class ViewGroupattrs - the attributes to build the layout parameters from
ViewGroup.LayoutParams or one
of its descendantsprotected boolean checkLayoutParams(ViewGroup.LayoutParams p)
ViewGroup
checkLayoutParams in class ViewGroupprotected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p)
ViewGroupViewGroup.checkLayoutParams(android.view.ViewGroup.LayoutParams), this method
is invoked. This method should return a new set of layout params suitable for
this ViewGroup, possibly by copying the appropriate attributes from the
specified set of layout params.
generateLayoutParams in class ViewGroupp - The layout parameters to convert into a suitable set of layout parameters
for this ViewGroup.
ViewGroup.LayoutParams or one
of its descendants
|
Build 1.1_r1 (from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||