# train Icon

> The train 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/train.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-symbols/train.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-symbols/train.md?v=sharp), [Outlined Filled](https://composables.com/icons/icon-libraries/material-symbols/train.md?v=outlined-filled), [Rounded Filled](https://composables.com/icons/icon-libraries/material-symbols/train.md?v=rounded-filled), [Sharp Filled](https://composables.com/icons/icon-libraries/material-symbols/train.md?v=sharp-filled)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-symbols/train.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 MaterialSymbolsTrain: ImageVector
    get() {
        if (_MaterialSymbolsTrain != null) return _MaterialSymbolsTrain!!
        
        _MaterialSymbolsTrain = ImageVector.Builder(
            name = "train",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 960f,
            viewportHeight = 960f
        ).apply {
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(160f, 620f)
                verticalLineToRelative(-380f)
                quadToRelative(0f, -53f, 27.5f, -84.5f)
                reflectiveQuadToRelative(72.5f, -48f)
                quadToRelative(45f, -16.5f, 102.5f, -22f)
                reflectiveQuadTo(480f, 80f)
                quadToRelative(66f, 0f, 124.5f, 5.5f)
                reflectiveQuadToRelative(102f, 22f)
                quadToRelative(43.5f, 16.5f, 68.5f, 48f)
                reflectiveQuadToRelative(25f, 84.5f)
                verticalLineToRelative(380f)
                quadToRelative(0f, 59f, -40.5f, 99.5f)
                reflectiveQuadTo(660f, 760f)
                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, 620f)
                close()
                moveToRelative(320f, -460f)
                quadToRelative(-106f, 0f, -155f, 12.5f)
                reflectiveQuadTo(258f, 200f)
                horizontalLineToRelative(448f)
                quadToRelative(-15f, -17f, -64.5f, -28.5f)
                reflectiveQuadTo(480f, 160f)
                close()
                moveTo(240f, 400f)
                horizontalLineToRelative(200f)
                verticalLineToRelative(-120f)
                horizontalLineTo(240f)
                verticalLineToRelative(120f)
                close()
                moveToRelative(420f, 80f)
                horizontalLineTo(240f)
                horizontalLineToRelative(480f)
                horizontalLineToRelative(-60f)
                close()
                moveToRelative(-140f, -80f)
                horizontalLineToRelative(200f)
                verticalLineToRelative(-120f)
                horizontalLineTo(520f)
                verticalLineToRelative(120f)
                close()
                moveTo(340f, 640f)
                quadToRelative(26f, 0f, 43f, -17f)
                reflectiveQuadToRelative(17f, -43f)
                quadToRelative(0f, -26f, -17f, -43f)
                reflectiveQuadToRelative(-43f, -17f)
                quadToRelative(-26f, 0f, -43f, 17f)
                reflectiveQuadToRelative(-17f, 43f)
                quadToRelative(0f, 26f, 17f, 43f)
                reflectiveQuadToRelative(43f, 17f)
                close()
                moveToRelative(280f, 0f)
                quadToRelative(26f, 0f, 43f, -17f)
                reflectiveQuadToRelative(17f, -43f)
                quadToRelative(0f, -26f, -17f, -43f)
                reflectiveQuadToRelative(-43f, -17f)
                quadToRelative(-26f, 0f, -43f, 17f)
                reflectiveQuadToRelative(-17f, 43f)
                quadToRelative(0f, 26f, 17f, 43f)
                reflectiveQuadToRelative(43f, 17f)
                close()
                moveToRelative(-320f, 40f)
                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(180f, -480f)
                horizontalLineToRelative(226f)
                horizontalLineToRelative(-448f)
                horizontalLineToRelative(222f)
                close()
            }
        }.build()
        
        return _MaterialSymbolsTrain!!
    }

private var _MaterialSymbolsTrain: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-symbols/train.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,620v-380q0,-53 27.5,-84.5t72.5,-48q45,-16.5 102.5,-22T480,80q66,0 124.5,5.5t102,22q43.5,16.5 68.5,48t25,84.5v380q0,59 -40.5,99.5T660,760l60,60v20h-80l-80,-80H400l-80,80h-80v-20l60,-60q-59,0 -99.5,-40.5T160,620Zm320,-460q-106,0 -155,12.5T258,200h448q-15,-17 -64.5,-28.5T480,160ZM240,400h200v-120H240v120Zm420,80H240h480h-60Zm-140,-80h200v-120H520v120ZM340,640q26,0 43,-17t17,-43q0,-26 -17,-43t-43,-17q-26,0 -43,17t-17,43q0,26 17,43t43,17Zm280,0q26,0 43,-17t17,-43q0,-26 -17,-43t-43,-17q-26,0 -43,17t-17,43q0,26 17,43t43,17Zm-320,40h360q26,0 43,-17t17,-43v-140H240v140q0,26 17,43t43,17Zm180,-480h226h-448h222Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="currentColor"><path d="M160-340v-380q0-53 27.5-84.5t72.5-48q45-16.5 102.5-22T480-880q66 0 124.5 5.5t102 22q43.5 16.5 68.5 48t25 84.5v380q0 59-40.5 99.5T660-200l60 60v20h-80l-80-80H400l-80 80h-80v-20l60-60q-59 0-99.5-40.5T160-340Zm320-460q-106 0-155 12.5T258-760h448q-15-17-64.5-28.5T480-800ZM240-560h200v-120H240v120Zm420 80H240h480-60Zm-140-80h200v-120H520v120ZM340-320q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm280 0q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm-320 40h360q26 0 43-17t17-43v-140H240v140q0 26 17 43t43 17Zm180-480h226-448 222Z"/></svg>
```
