
public static class MapView.LayoutParams extends ViewGroup.LayoutParams
| Modifier and Type | Field and Description |
|---|---|
int |
alignment
The alignment the alignment of the view compared to the location.
|
static int |
BOTTOM_CENTER
Special value for the alignment requested by a View.
|
static int |
BOTTOM_LEFT
Special value for the alignment requested by a View.
|
static int |
BOTTOM_RIGHT
Special value for the alignment requested by a View.
|
static int |
CENTER
Special value for the alignment requested by a View.
|
static int |
CENTER_LEFT
Special value for the alignment requested by a View.
|
static int |
CENTER_RIGHT
Special value for the alignment requested by a View.
|
IGeoPoint |
geoPoint
The location of the child within the map view.
|
int |
offsetX |
int |
offsetY |
static int |
TOP_CENTER
Special value for the alignment requested by a View.
|
static int |
TOP_LEFT
Special value for the alignment requested by a View.
|
static int |
TOP_RIGHT
Special value for the alignment requested by a View.
|
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT| Constructor and Description |
|---|
LayoutParams(Context c,
AttributeSet attrs)
Since we cannot use XML files in this project this constructor is useless.
|
LayoutParams(int width,
int height,
IGeoPoint geoPoint,
int alignment,
int offsetX,
int offsetY)
Creates a new set of layout parameters with the specified width, height and location.
|
LayoutParams(ViewGroup.LayoutParams source) |
resolveLayoutDirection, setBaseAttributespublic static final int TOP_LEFT
public static final int TOP_CENTER
public static final int TOP_RIGHT
public static final int CENTER_LEFT
public static final int CENTER
public static final int CENTER_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_CENTER
public static final int BOTTOM_RIGHT
public IGeoPoint geoPoint
public int alignment
public int offsetX
public int offsetY
public LayoutParams(int width,
int height,
IGeoPoint geoPoint,
int alignment,
int offsetX,
int offsetY)
width - the width, either ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size
in pixelsheight - the height, either ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT or a fixed size
in pixelsgeoPoint - the location of the child within the map viewalignment - the alignment of the view compared to the location BOTTOM_CENTER,
BOTTOM_LEFT, BOTTOM_RIGHT TOP_CENTER,
TOP_LEFT, TOP_RIGHToffsetX - the additional X offset from the alignment location to draw the child within
the map viewoffsetY - the additional Y offset from the alignment location to draw the child within
the map viewpublic LayoutParams(Context c, AttributeSet attrs)
c - the application environmentattrs - the set of attributes fom which to extract the layout parameters valuespublic LayoutParams(ViewGroup.LayoutParams source)