/** @param routeBusLineItem */ private void addBusStationMarkers(RouteBusLineItem routeBusLineItem) { BusStationItem startBusStation = routeBusLineItem.getDepartureBusStation(); LatLng position = AMapUtil.convertToLatLng(startBusStation.getLatLonPoint()); String title = routeBusLineItem.getBusLineName(); String snippet = getBusSnippet(routeBusLineItem); addStationMarker( new MarkerOptions() .position(position) .title(title) .snippet(snippet) .anchor(0.5f, 0.5f) .visible(nodeIconVisible) .icon(getBusBitmapDescriptor())); }
private void addBusStation(BusStationItem station) { LinearLayout ll = (LinearLayout) View.inflate(context, R.layout.bus_extension, null); TextView tv = (TextView) ll.findViewById(R.id.bus_line_station_name); tv.setText(station.getBusStationName()); mHolder.expandContent.addView(ll); }