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)
| 构造器和说明 |
|---|
DriveWayView(Context context) |
DriveWayView(Context context,
AttributeSet attrs) |
DriveWayView(Context context,
AttributeSet attrs,
int defStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bind(NaviViewData naviViewData) |
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)
已过时。
请使用
loadDriveWayBitmap(AMapLaneInfo)
Please use loadDriveWayBitmap(AMapLaneInfo) |
void |
setAMapNaviView(AMapNaviView aMapNaviView) |
void |
setDefaultTopMargin(int nHeight) |
void |
unbind() |
public DriveWayView(Context context)
context - public DriveWayView(Context context,
AttributeSet attrs)
context - attrs - public DriveWayView(Context context,
AttributeSet attrs,
int defStyle)
context - attrs - defStyle - public void setAMapNaviView(AMapNaviView aMapNaviView)
public void loadDriveWayBitmap(byte[] laneBackgroundInfo,
byte[] laneRecommendedInfo)
loadDriveWayBitmap(AMapLaneInfo)
loadDriveWayBitmap(AMapLaneInfo)laneBackgroundInfo - 背景数据数组
laneRecommendedInfo - 推荐数据数组
public void loadDriveWayBitmap(AMapLaneInfo laneInfo)
laneInfo - 车道背景数据,可通过 AMapNaviListener.showLaneInfo(AMapLaneInfo) 获取
AMapNaviListener.showLaneInfo(AMapLaneInfo)public void setDefaultTopMargin(int nHeight)
public int getDriveWaySize()
public int getDriveWayBgHeight()
public int getDriveWayWidth()
public int getDriveWaysWidth()
public void bind(NaviViewData naviViewData)
public void unbind()