public class DriveWayView
extends LinearLayout
提示用户当前的车道有几个 且不同车道对应的前进方向为什么(比如:直行+右转;掉头)
Prompt users how many lanes are currently available and what the forward direction is for different lanes (e.g., go straight + turn right; U-turn)
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getDriveWayBgHeight()
返回单车道控件高度
Return the height of a single lane control |
int |
getDriveWaySize()
车道数量
Number of lanes |
int |
getDriveWaysWidth()
获取车道总宽度,包括中间竖线
Get the total width of the lanes, including the middle vertical line |
int |
getDriveWayWidth()
返回单车道控件宽度
Return the width of a single lane control |
void |
loadDriveWayBitmap(AMapLaneInfo laneInfo)
加载车道背景和推荐车道线数据,自动产生对应的车道信息位图
Load lane background and recommended lane line data, automatically generate corresponding lane information bitmap |
void |
loadDriveWayBitmap(byte[] laneBackgroundInfo,
byte[] laneRecommendedInfo)
|
public void loadDriveWayBitmap(byte[] laneBackgroundInfo,
byte[] laneRecommendedInfo)
DriveWayView.loadDriveWayBitmap(AMapLaneInfo)
DriveWayView.loadDriveWayBitmap(AMapLaneInfo)laneBackgroundInfo - 背景数据数组
laneRecommendedInfo - 推荐数据数组
public void loadDriveWayBitmap(AMapLaneInfo laneInfo)
laneInfo - 车道背景数据,可通过 AMapNaviListener.showLaneInfo(AMapLaneInfo) 获取
AMapNaviListener.showLaneInfo(AMapLaneInfo)public int getDriveWaySize()
public int getDriveWayBgHeight()
public int getDriveWayWidth()
public int getDriveWaysWidth()