com.amap.api.navi.view

## 类 DriveWayView

- java.lang.Object
- - LinearLayout
  - - com.amap.api.navi.view.DriveWayView

-     public class DriveWayView
      extends LinearLayout

  车道线视图类
  Lane view class

  提示用户当前的车道有几个 且不同车道对应的前进方向为什么（比如：直行+右转；掉头）
  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)

  从以下版本开始:
    1.5.0

- - ### 方法概要

    所有方法 实例方法 具体方法 已过时的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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)` 已过时。 请使用 `DriveWayView.loadDriveWayBitmap(AMapLaneInfo)` Please use `DriveWayView.loadDriveWayBitmap(AMapLaneInfo)`

    - ### 从类继承的方法 java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### loadDriveWayBitmap

          public void loadDriveWayBitmap(byte[] laneBackgroundInfo,
                                         byte[] laneRecommendedInfo)

      已过时。 请使用 `DriveWayView.loadDriveWayBitmap(AMapLaneInfo)`
      Please use `DriveWayView.loadDriveWayBitmap(AMapLaneInfo)`
      加载车道背景和推荐车道线数据，自动产生对应的车道信息位图
      Load lane background and recommended lane line data, automatically generate corresponding lane information bitmap
      参数:
        `laneBackgroundInfo` - 背景数据数组
        Background data array
        `laneRecommendedInfo` - 推荐数据数组
        Recommended data array

    - #### loadDriveWayBitmap

          public void loadDriveWayBitmap(AMapLaneInfo laneInfo)

      加载车道背景和推荐车道线数据，自动产生对应的车道信息位图
      Load lane background and recommended lane line data, automatically generate corresponding lane information bitmap
      参数:
        `laneInfo` - 车道背景数据，可通过 `AMapNaviListener.showLaneInfo(AMapLaneInfo)` 获取
        Lane background data, can be obtained through `AMapNaviListener.showLaneInfo(AMapLaneInfo)`

    - #### getDriveWaySize

          public int getDriveWaySize()

      车道数量
      Number of lanes
      返回:
        int 当前车道数量
        int Current number of lanes

    - #### getDriveWayBgHeight

          public int getDriveWayBgHeight()

      返回单车道控件高度
      Return the height of a single lane control
      返回:
        单车道控件高度
        Height of a single lane control

    - #### getDriveWayWidth

          public int getDriveWayWidth()

      返回单车道控件宽度
      Return the width of a single lane control
      返回:
        单车道控件宽度
        Width of a single lane control
      从以下版本开始:
        1.6.0

    - #### getDriveWaysWidth

          public int getDriveWaysWidth()

      获取车道总宽度，包括中间竖线
      Get the total width of the lanes, including the middle vertical line
      返回:
        车道总宽度
        Total width of lanes
      从以下版本开始:
        6.5.0