public class DirectionsOptions
extends java.lang.Object
implements java.io.Serializable
A serializable options object for use with MapView
and MapFragment
.
Modifier and Type | Field and Description |
---|---|
int |
DIRECTIONS_CALLOUT_COLOR
Background color used for directions callout.
|
boolean |
DIRECTIONS_INSTRUCTIONS_ON_TOP
If
true , the directions text is inverted so that instructions is above distance. |
int |
DIRECTIONS_INSTRUCTIONS_TEXT_COLOR
Text color for directions instructions.
|
int |
DIRECTIONS_SLIDE_COLOR
Background color used for directions slide.
|
int |
END_ROUTE_BUTTON_COLOR
Background color used for route end button.
|
int |
END_ROUTE_BUTTON_TEXT_COLOR
Text color used for route end button.
|
int |
REORIENTATION_BANNER_COLOR
Background color used for re-orientation banner.
|
int |
ROUTE_OVERVIEW_BUTTON_COLOR
Background color used for route overview button.
|
int |
ROUTE_OVERVIEW_BUTTON_TEXT_COLOR
Text color for route overview button.
|
Constructor and Description |
---|
DirectionsOptions(DirectionsOptions fromOptions)
Initializes this DirectionsOptions instance by copying the values of the given DirectionsOptions instance.
|
Modifier and Type | Method and Description |
---|---|
void |
fromAttributes(android.content.Context context,
android.util.AttributeSet attrs)
For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.
|
static DirectionsOptions |
getDefaultOptions()
A static factory method for getting a default options object.
|
static DirectionsOptions |
getFromAttributes(android.content.Context context,
android.util.AttributeSet attrs)
A static factory method for getting a default options object with the provided attributes.
|
void |
set(DirectionsOptions options)
Sets this DirectionsOptions values to that of another DirectionsOptions.
|
public int DIRECTIONS_CALLOUT_COLOR
Background color used for directions callout.
public int DIRECTIONS_SLIDE_COLOR
Background color used for directions slide.
public int DIRECTIONS_INSTRUCTIONS_TEXT_COLOR
Text color for directions instructions.
public int ROUTE_OVERVIEW_BUTTON_COLOR
Background color used for route overview button.
public int ROUTE_OVERVIEW_BUTTON_TEXT_COLOR
Text color for route overview button.
public int END_ROUTE_BUTTON_COLOR
Background color used for route end button.
public int END_ROUTE_BUTTON_TEXT_COLOR
Text color used for route end button.
public int REORIENTATION_BANNER_COLOR
Background color used for re-orientation banner.
public boolean DIRECTIONS_INSTRUCTIONS_ON_TOP
If true
, the directions text is inverted so that instructions is above distance.
By default directions text has distance on top and instructions on the bottom.
public DirectionsOptions(DirectionsOptions fromOptions)
Initializes this DirectionsOptions instance by copying the values of the given DirectionsOptions instance.
fromOptions
- The options to copy.public static DirectionsOptions getDefaultOptions()
A static factory method for getting a default options object.
public static DirectionsOptions getFromAttributes(android.content.Context context, android.util.AttributeSet attrs)
A static factory method for getting a default options object with the provided attributes.
public void set(DirectionsOptions options)
Sets this DirectionsOptions values to that of another DirectionsOptions.
public void fromAttributes(android.content.Context context, android.util.AttributeSet attrs)
For use with the creation of MapViews from XML, simply pass the attributes and the DirectionsOption will set itself up appropriately.