|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object android.view.ViewGroup.LayoutParams com.google.android.maps.MapView.LayoutParams
public static class MapView.LayoutParams
Per-child layout information associated with MapView. Child views can
be laid out either positioned with respect to the MapView
(MODE_VIEW
), or
positioned with respect to the map that is being displayed by the
MapView (MODE_MAP
).
In addition, each child view can be aligned relative to its position.
,
alignment
Field Summary | |
---|---|
int |
alignment
Placement of child relative to the location. |
static int |
BOTTOM
Horizontal alignment: Align bottom. |
static int |
BOTTOM_CENTER
Alignment: Align to bottom vertically, center horizontally. |
static int |
CENTER
Alignment: Align center in both dimensions. |
static int |
CENTER_HORIZONTAL
Horizontal alignment: Align center horizontally. |
static int |
CENTER_VERTICAL
Vertical alignment: Align center vertically. |
static int |
LEFT
Horizontal alignment: Align left. |
int |
mode
The layout mode. |
static int |
MODE_MAP
Layout mode: map relative. |
static int |
MODE_VIEW
Layout mode: map view relative. |
GeoPoint |
point
The location of the child on the map. |
static int |
RIGHT
Horizontal alignment: Align right. |
static int |
TOP
Vertical alignment: Align top. |
static int |
TOP_LEFT
Alignment: Align to top left. |
int |
x
The x location of the child relative to the view. |
int |
y
The y location of the child relative to the view. |
Fields inherited from class android.view.ViewGroup.LayoutParams |
---|
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT |
Constructor Summary | |
---|---|
MapView.LayoutParams(android.content.Context c,
android.util.AttributeSet attrs)
Creates a new set of layout parameters. |
|
MapView.LayoutParams(int width,
int height,
GeoPoint point,
int alignment)
Creates a new set of layout parameters with the specified width, height and location. |
|
MapView.LayoutParams(int width,
int height,
GeoPoint point,
int x,
int y,
int alignment)
Creates a new set of layout parameters with the specified width, height and location. |
|
MapView.LayoutParams(int width,
int height,
int x,
int y,
int alignment)
Creates a new set of layout parameters with the specified width, height and location. |
|
MapView.LayoutParams(android.view.ViewGroup.LayoutParams source)
|
Method Summary | |
---|---|
java.lang.String |
debug(java.lang.String output)
|
Methods inherited from class android.view.ViewGroup.LayoutParams |
---|
onDebugDraw, onResolveLayoutDirection, setBaseAttributes, sizeToString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MODE_MAP
point
,
Constant Field Valuespublic static final int MODE_VIEW
x
,
y
,
Constant Field Valuespublic int mode
MODE_MAP
,
MODE_VIEW
public GeoPoint point
MODE_MAP
.
public int x
MODE_VIEW
public int y
MODE_VIEW
public int alignment
Gravity
class, except the alignment is relative to a point
rather than an enclosing rectangle. You can or-together horizontal
and vertical alignment to create a complete alignment specification,
or you can use one of the predefined specifications
TOP_LEFT
, CENTER
or BOTTOM_CENTER
.
LEFT
,
RIGHT
,
TOP
,
BOTTOM
,
CENTER_HORIZONTAL
,
CENTER_VERTICAL
,
CENTER
,
TOP_LEFT
,
BOTTOM_CENTER
public static final int LEFT
alignment
,
Constant Field Valuespublic static final int RIGHT
alignment
,
Constant Field Valuespublic static final int TOP
alignment
,
Constant Field Valuespublic static final int BOTTOM
alignment
,
Constant Field Valuespublic static final int CENTER_HORIZONTAL
alignment
,
Constant Field Valuespublic static final int CENTER_VERTICAL
alignment
,
Constant Field Valuespublic static final int CENTER
alignment
,
Constant Field Valuespublic static final int TOP_LEFT
alignment
,
Constant Field Valuespublic static final int BOTTOM_CENTER
alignment
,
Constant Field ValuesConstructor Detail |
---|
public MapView.LayoutParams(int width, int height, GeoPoint point, int alignment)
width
- The width, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixels.height
- The height, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixels.point
- The location of the child.alignment
- The alignment to use.alignment
public MapView.LayoutParams(int width, int height, GeoPoint point, int x, int y, int alignment)
width
- the width, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsheight
- the height, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelspoint
- the location of the child on the mapx
- the offset of the child in pixels from pointy
- the offset of the child in pixels from pointalignment
- the alignment to usealignment
public MapView.LayoutParams(int width, int height, int x, int y, int alignment)
MODE_VIEW
, which means the child view will be
laid out relative to the parent view.
width
- The width, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixels.height
- The height, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixels.x
- The location of the child relative to the view.y
- The location of the child relative to the view.alignment
- The alignment to use.alignment
public MapView.LayoutParams(android.content.Context c, android.util.AttributeSet attrs)
Due to a limitation of the UI framework, it is not possible to define our own XML attribute, so we are limited to supporting the standard XML attributes we inherit from our parent class.
The XML attributes mapped to this set of layout parameters are:
ViewGroup.LayoutParams
c
- The application environment.attrs
- The set of attributes from which to extract the layout
parameters values.public MapView.LayoutParams(android.view.ViewGroup.LayoutParams source)
Method Detail |
---|
public java.lang.String debug(java.lang.String output)
debug
in class android.view.ViewGroup.LayoutParams
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |