# tram Icon

> The tram icon from Material Symbols as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Symbols](https://composables.com/icons/icon-libraries/material-symbols.md)
- License: Apache 2.0 (full text in the [Material Symbols library page](https://composables.com/icons/icon-libraries/material-symbols.md))
- Styles: [Outlined](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=sharp), [Outlined Filled](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=outlined-filled), [Rounded Filled](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=rounded-filled), [Sharp Filled](https://composables.com/icons/icon-libraries/material-symbols/tram.md?v=sharp-filled)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/tram.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialSymbolsTram: ImageVector
    get() {
        if (_MaterialSymbolsTram != null) return _MaterialSymbolsTram!!
        
        _MaterialSymbolsTram = ImageVector.Builder(
            name = "tram",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(160f, 700f)
                verticalLineToRelative(-380f)
                quadToRelative(0f, -97f, 85f, -127f)
                reflectiveQuadToRelative(195f, -33f)
                lineToRelative(30f, -60f)
                horizontalLineTo(280f)
                verticalLineToRelative(-60f)
                horizontalLineToRelative(400f)
                verticalLineToRelative(60f)
                horizontalLineTo(550f)
                lineToRelative(-30f, 60f)
                quadToRelative(119f, 3f, 199.5f, 32.5f)
                reflectiveQuadTo(800f, 320f)
                verticalLineToRelative(380f)
                quadToRelative(0f, 59f, -40.5f, 99.5f)
                reflectiveQuadTo(660f, 840f)
                lineToRelative(60f, 60f)
                verticalLineToRelative(20f)
                horizontalLineToRelative(-80f)
                lineToRelative(-80f, -80f)
                horizontalLineTo(400f)
                lineToRelative(-80f, 80f)
                horizontalLineToRelative(-80f)
                verticalLineToRelative(-20f)
                lineToRelative(60f, -60f)
                quadToRelative(-59f, 0f, -99.5f, -40.5f)
                reflectiveQuadTo(160f, 700f)
                close()
                moveToRelative(500f, -140f)
                horizontalLineTo(240f)
                horizontalLineToRelative(480f)
                horizontalLineToRelative(-60f)
                close()
                moveTo(480f, 720f)
                quadToRelative(25f, 0f, 42.5f, -17.5f)
                reflectiveQuadTo(540f, 660f)
                quadToRelative(0f, -25f, -17.5f, -42.5f)
                reflectiveQuadTo(480f, 600f)
                quadToRelative(-25f, 0f, -42.5f, 17.5f)
                reflectiveQuadTo(420f, 660f)
                quadToRelative(0f, 25f, 17.5f, 42.5f)
                reflectiveQuadTo(480f, 720f)
                close()
                moveToRelative(-2f, -440f)
                horizontalLineToRelative(228f)
                horizontalLineToRelative(-450f)
                horizontalLineToRelative(222f)
                close()
                moveTo(240f, 480f)
                horizontalLineToRelative(480f)
                verticalLineToRelative(-120f)
                horizontalLineTo(240f)
                verticalLineToRelative(120f)
                close()
                moveToRelative(60f, 280f)
                horizontalLineToRelative(360f)
                quadToRelative(26f, 0f, 43f, -17f)
                reflectiveQuadToRelative(17f, -43f)
                verticalLineToRelative(-140f)
                horizontalLineTo(240f)
                verticalLineToRelative(140f)
                quadToRelative(0f, 26f, 17f, 43f)
                reflectiveQuadToRelative(43f, 17f)
                close()
                moveToRelative(178f, -520f)
                quadToRelative(-134f, 0f, -172f, 14.5f)
                reflectiveQuadTo(256f, 280f)
                horizontalLineToRelative(450f)
                quadToRelative(-12f, -14f, -52f, -27f)
                reflectiveQuadToRelative(-176f, -13f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsTram!!
    }

private var _MaterialSymbolsTram: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/tram.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="960"
    android:viewportHeight="960">
    <path
        android:fillColor="@android:color/black"
        android:pathData="M160,700v-380q0,-97 85,-127t195,-33l30,-60H280v-60h400v60H550l-30,60q119,3 199.5,32.5T800,320v380q0,59 -40.5,99.5T660,840l60,60v20h-80l-80,-80H400l-80,80h-80v-20l60,-60q-59,0 -99.5,-40.5T160,700Zm500,-140H240h480h-60ZM480,720q25,0 42.5,-17.5T540,660q0,-25 -17.5,-42.5T480,600q-25,0 -42.5,17.5T420,660q0,25 17.5,42.5T480,720Zm-2,-440h228h-450h222ZM240,480h480v-120H240v120Zm60,280h360q26,0 43,-17t17,-43v-140H240v140q0,26 17,43t43,17Zm178,-520q-134,0 -172,14.5T256,280h450q-12,-14 -52,-27t-176,-13Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-symbols/tram.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="M160-260v-380q0-97 85-127t195-33l30-60H280v-60h400v60H550l-30 60q119 3 199.5 32.5T800-640v380q0 59-40.5 99.5T660-120l60 60v20h-80l-80-80H400l-80 80h-80v-20l60-60q-59 0-99.5-40.5T160-260Zm500-140H240h480-60ZM480-240q25 0 42.5-17.5T540-300q0-25-17.5-42.5T480-360q-25 0-42.5 17.5T420-300q0 25 17.5 42.5T480-240Zm-2-440h228-450 222ZM240-480h480v-120H240v120Zm60 280h360q26 0 43-17t17-43v-140H240v140q0 26 17 43t43 17Zm178-520q-134 0-172 14.5T256-680h450q-12-14-52-27t-176-13Z"/></svg>
```
